[chef] How to use custom chef-handlers?


Chronological Thread 
  • From: Sachin Sagar Rai < >
  • To:
  • Subject: [chef] How to use custom chef-handlers?
  • Date: Thu, 9 Aug 2012 00:10:44 +0545

Ohai!

I tried to use custom-handler with chef-servers, I mean not chef-solo,  and in particular this https://github.com/jtimberman/chef-handler-updated-resources simple one by @jtimberman 
But it errors out everytime.

Following is the recipe ( I tried with different ways):

    include_recipe "chef_handler"

    chef_gem "chef-handler-updated-resources"
    gem "chef-handler-updated-resources"
     
    # r = gem_package "chef-handler-updated-resources" do
    #   action :nothing
    # end 
    # r.run_action(:install)
    # Gem.clear_paths

    # require 'chef-handler-updated-resources'

    chef_handler "SimpleReport::UpdatedResources" do
      action :nothing
    end.run_action(:enable)

But always errors out. The -l debug is here: https://gist.github.com/3296700

Whats wrong with  `require "chef-handler-updated-resources"` ???
-------------------------------------------
@millisami
~ Sachin Sagar Rai
Ruby on Rails Developer
http://tfm.com.np
http://nepalonrails.tumblr.com
Sent with Sparrow




Archive powered by MHonArc 2.6.16.

§