- 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"` ???
-------------------------------------------
- [chef] How to use custom chef-handlers?, Sachin Sagar Rai, 08/08/2012
Archive powered by MHonArc 2.6.16.