def collect_args(resource_args = [])if resource_args.is_a? Arrayresource_argselse[resource_args]endend
If I pass in just two plain strings, then it complains I've only passed in one of two required arguments.
Thank you so much for your patience - I'm (obviously) new to ruby as well!
Try this:chef_handler "MYLibs::Email" doarguments " " target="_blank"> ", " " target="_blank"> "
source "C:/chef/handlers/Email.rb"
action :enable
end
The constructor in the wiki example takes two plain arguments, you are passing a hash.chef_handler "MYLibs::Email" do
source "C:/chef/handlers/Email.rb"
arguments :from_address => " " target="_blank"> ", :to_address => " " target="_blank"> "
action :enable
end
Archive powered by MHonArc 2.6.16.