Hi all,
I was trying to figure out how to include parametrized classes. I eventually
got it to work with the following syntax, but I don't understand what it
does (I tried to read the code). Can someone explain the magic of
known_resource_types?
classes.each do |name, params|
klass = Puppet::Resource::Type.new(:hostclass, name, params)
known_resource_types.add klass
end
--
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.