[chef] Problem using HipChat handler with chef_handler


Chronological Thread 
  • From: Jeppe Nejsum Madsen < >
  • To: " " < >
  • Subject: [chef] Problem using HipChat handler with chef_handler
  • Date: Thu, 29 Aug 2013 12:52:18 +0200

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


  • [chef] Problem using HipChat handler with chef_handler, Jeppe Nejsum Madsen, 08/29/2013

Archive powered by MHonArc 2.6.16.

§