Ohai,
I’m trying to use the HipChat handler (
https://github.com/mojotech/hipchat/blob/master/lib/hipchat/chef.rb) with
chef_handler.
In my recipe I include this:
include_recipe 'chef_handler’
chef_gem "hipchat"
chef_handler ‘Hipchat::NotifyRoom’ do
action :enable
arguments :api_token => “”, :room_name => ""
source File.join(Gem::Specification.find{|s| s.name ==
‘hipchat’}.gem_dir, ‘lib’, ‘hipchat’, ‘chef.rb’)
end
But I get this error from chef_handler:
NameError: chef_handler[Hipchat::NotifyRoom] (base-econ::hipchat_handler
line 5) had an error: NameError: uninitialized constant Kernel::Hipchat
C:/chef/cache/cookbooks/chef_handler/providers/default.rb:91:in const_get' C:/chef/cache/cookbooks/chef_handler/providers/default.rb:91:in
block in
klass’
C:/chef/cache/cookbooks/chef_handler/providers/default.rb:91:in each' C:/chef/cache/cookbooks/chef_handler/providers/default.rb:91:in
inject’
C:/chef/cache/cookbooks/chef_handler/providers/default.rb:91:in klass' C:/chef/cache/cookbooks/chef_handler/providers/default.rb:39:in
block (2
levels) in class_from_file’
Any hints?
/Jeppe