- From: Daniel DeLeo <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Notification Handler
- Date: Wed, 11 Aug 2010 18:06:16 -0700
On Wed, Aug 11, 2010 at 5:59 PM, Alex Soto
<
>
wrote:
>
I've only seen this blog post:
>
http://www.opscode.com/blog/2010/06/20/chef-0-9-0-and-ohai-0-5-6-released/
>
>
On Aug 11, 2010, at 5:56 PM, Paul Choi wrote:
>
>
>
>
> Is there some documentation for writing handlers?
>
> I've been searching the wiki and I don't see any entries on handlers.
>
>
>
> I never did anything in ruby before Chef, so if there's some ruby way of
>
> figuring this out (like using the "ri" command or something), I'd
>
> appreciate it.
We haven't added documentation to the wiki yet, but there is inline
documentation in the source with another example:
http://github.com/opscode/chef/blob/master/chef/lib/chef/handler.rb
FYI, that 'def_delegator' stuff is just a fancy way to make a method like:
def start_time
@run_status.start_time
end
So you can use them like a regular method.
HTH,
Dan DeLeo
Archive powered by MHonArc 2.6.16.