[chef] Re: Re: Notifying Resources within Ruby Block Resource


Chronological Thread 
  • From: Bryan Baugher < >
  • To:
  • Subject: [chef] Re: Re: Notifying Resources within Ruby Block Resource
  • Date: Tue, 15 Nov 2011 10:17:19 -0600

That works perfectly. Thank you.

On Mon, Nov 14, 2011 at 5:44 PM, Bryan McLellan < "> > wrote:
On Mon, Nov 14, 2011 at 5:38 PM,  < "> > wrote:
> I have found myself running into the case where I want to notify a specific
> resource within a Ruby Block resource.

From within a ruby block resource?

http://lists.opscode.com/sympa/arc/chef-dev/2011-01/msg00003.html

# At run time
ruby_block "foo" do
 block do
   resources(:service => "apache2").run_action(:restart)
 end
end




Archive powered by MHonArc 2.6.16.

§