5 module Puppet::Parser::Functions
6 newfunction(:parseyaml, :type => :rvalue, :doc => <<-EOS
7 This function accepts YAML as a string and converts it into the correct
12 if (arguments.size != 1) then
13 raise(Puppet::ParseError, "parseyaml(): Wrong number of arguments "+
14 "given #{arguments.size} for 1")
19 YAML::load(arguments[0])
24 # vim: set ts=2 sw=2 et :