Skip to content
Snippets Groups Projects
Commit 8715cbe2 authored by Mathieu Sauve-Frankel's avatar Mathieu Sauve-Frankel
Browse files

include documentation that actually works

parent ef1cd583
No related branches found
Tags v0.1.2
No related merge requests found
......@@ -6,18 +6,14 @@ Opcode wiki at http://wiki.opscode.com/display/chef/Exception+and+Report+Handler
# USAGE:
Using chef_handler LWRP:
include_recipe "chef_handler"
gem_package "chef-handler-mail" do
action :nothing
end.run_action(:install)
chef_handler 'mail-handler' do
source 'chef/handler/mail'
args :to_address "admins@example.com"
end
Using /etc/chef/config.rb
require 'rubygems'
require 'chef/mail/handler'
mail_handler = MailHandler.new
report_handlers << mail_handler
exception_handlers << mail_handler
# LICENSE AND AUTHOR:
......
class MailHandler
VERSION = "0.1.1"
VERSION = "0.1.2"
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment