]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#8575) Add loadyaml() function
authorJeff McCune <jeff@puppetlabs.com>
Mon, 25 Jul 2011 17:42:27 +0000 (10:42 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Tue, 26 Jul 2011 22:45:47 +0000 (15:45 -0700)
commit8a46e201fe476825f7fec5d67d2ff14ba48008a1
tree70b7cfb2316ccbacebe607d6e30c0ca22d655109
parenta6ed9fbca3f256304df17b1cfae157728d60bb1d
(#8575) Add loadyaml() function

This change adds a loadyaml() puppet function that takes a path to a
YAML data file and returns the contents as a Puppet variable.  There is
currently no validation of the contents of the file.

This commit is intentionally lacking unit tests because of time
constraints.

Reviewed-by: Dan Bode
lib/puppet/parser/functions/loadyaml.rb [new file with mode: 0644]