- From: Joshua Timberman <
>
- To:
- Subject: [chef] Re: Notifying Resources within Ruby Block Resource
- Date: Mon, 14 Nov 2011 16:32:04 -0700
On Nov 14, 2011, at 3:38 PM,
<
>
<
>
wrote:
>
I have found myself running into the case where I want to notify a specific
>
resource within a Ruby Block resource.
>
>
I can't see any simple way to do this without modifying the ruby block
>
provider.
>
>
Is there anyway to do this without modifying the provider?
You can do this:
ruby_block "some ruby code" do
block do
# the actual stuff in the block
end
notifies :action, "resource[other resource]"
end
Note that the notifies goes after the `block` parameter's block.
--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman
Archive powered by MHonArc 2.6.16.