I'm trying to implement an eval function in Puppet but couldn't figure
out a way to get code evaluated from a string.
module Puppet::Parser::Functions
newfunction(:eval, :doc => "Evaluate Puppet code") do |args|
code = args[0]
debug "Evaluating %s" % code
# How can I get this code evaluated ?
end
end
Thanks !
François
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---