diff options
author | Jeff McCune <jeff@puppetlabs.com> | 2011-08-18 13:45:28 -0700 |
---|---|---|
committer | Jeff McCune <jeff@puppetlabs.com> | 2011-08-18 13:45:28 -0700 |
commit | bdba42dbb6328ccc5bb13f0777240fdb85e538ca (patch) | |
tree | de11ef579d7ffec6c7161945da5e84b75287d629 /lib/puppet/parser/functions/loadyaml.rb | |
parent | ad5316f561475157e425a7fddf1365e8e89b2b9d (diff) | |
parent | 8e770b04234aacfc09c7b8ad45ffa304cb83f723 (diff) |
Merge pull request #16 from nfagerlund/docs/v2.0.0/XXXX_function_doc_updates
Docs/v2.0.0/xxxx function doc updates
Diffstat (limited to 'lib/puppet/parser/functions/loadyaml.rb')
-rw-r--r-- | lib/puppet/parser/functions/loadyaml.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/parser/functions/loadyaml.rb b/lib/puppet/parser/functions/loadyaml.rb index 0f16f69..10c4005 100644 --- a/lib/puppet/parser/functions/loadyaml.rb +++ b/lib/puppet/parser/functions/loadyaml.rb @@ -1,12 +1,12 @@ module Puppet::Parser::Functions newfunction(:loadyaml, :type => :rvalue, :doc => <<-'ENDHEREDOC') do |args| - Load a YAML file and return the data if it contains an Array, String, or Hash - as a Puppet variable. + Load a YAML file containing an array, string, or hash, and return the data + in the corresponding native data type. For example: - $myhash = loadyaml('/etc/puppet/data/myhash.yaml') + $myhash = loadyaml('/etc/puppet/data/myhash.yaml') ENDHEREDOC unless args.length == 1 |