Hello!
We are writing handler(message.rb).
require "rubygems"
require "amqp"
require "chef"
.....
class Test < Chef::Handler
def initialize(ipad)
@ipad = ipad
end
puts @ipad
...........
end
We have recipe where we call this handler:
.....
include_recipe "chef_handler"
chef_handler "Chef::Handler::Test" do
arguments ['something']
source "/var/chef/handlers/message.rb"
action :enable
end
.........
We can't send parameters from recipe to handler, the result of running recipe is: @ipad = nil
How can we send parametrs to handler?
-- Best Regards, Ilya Maltsev
Archive powered by MHonArc 2.6.16.