chef_gem "pony" do
action :install
end
include_recipe "chef_handler"
cookbook_file "#{node['chef_handler']['handler_path']}/email_handler.rb" do
source "handlers/email_handler.rb"
owner "root"
group "root"
mode "0755"
end
chef_handler "MyCompany::EmailMe" do
source "#{node['chef_handler']['handler_path']}/email_handler.rb"
arguments [node['email_handler']['from_address'],
node['email_handler']['to_address']]
action :enable
end