search for: set_arguments

Displaying 1 result from an estimated 1 matches for "set_arguments".

2010 Dec 09
1
Calling class defines in pure ruby DSL
...e in class ''foo'' called ''foo::bar'': define foo::bar ($var1, $var2) { ... } Then I have a ruby hostclass hostclass :foo do ... } I see I can successfully set the parameters by doing: environment.known_resource_types.definitions[''foo::bar''].set_arguments :var1 => ''val1'', :var2 => ''val2'' But this raises two problems. 1) foo::bar doesn''t exist in known_resource_types.definitions unless you add it manually or it exists in the same rb file as the class. So how I do an auto load? 2) How do I actually...