Created
February 28, 2019 22:39
-
-
Save binford2k/70cc7267b49a8fb3e5829697bba42f02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Puppet::Functions.create_function(:local_file) do | |
dispatch :load do | |
param 'String', :path | |
end | |
def load(path) | |
Puppet::FileSystem.read_preserve_line_endings(path) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment