in order to extend cucumber-puppet to support parameterised classes, I
need to create a node object from a parameterised class.
At the moment my code does sth like this:
node = Puppet::Node.new(@facts['hostname'], :classes => @klass)
node.merge(@facts)
@catalog = Puppet::Resource::Catalog.find(node.name, :use_node => node)
Where and how would I have to add the class's parameters?
cheers,
Nikolay
--
"It's all part of my Can't-Do approach to life." Wally
Hi,
in order to extend cucumber-puppet to support parameterised classes, I
need to create a node object from a parameterised class.
At the moment my code does sth like this:
node = Puppet::Node.new(@facts['hostname'], :classes => @klass)
node.merge(@facts)
@catalog = Puppet::Resource::Catalog.find(node.name, :use_node => node)
Where and how would I have to add the class's parameters?
cheers,
Nikolay
--
"It's all part of my Can't-Do approach to life." Wally
--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to puppe...@googlegroups.com.
To unsubscribe from this group, send email to puppet-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
> This will only work against 2.6.5 (currently at rc4)
>
> The only difference is that :classes should take a hash instead of an array.
Great, works fine. Thanks for your help!
cheers,
Nikolay