[[chef-dev]] Re: [[chef-dev]] Notify blocks


Chronological Thread 
  • From: Akzhan Abdulin < >
  • To: Noah Kantrowitz < >
  • Cc:
  • Subject: [[chef-dev]] Re: [[chef-dev]] Notify blocks
  • Date: Fri, 7 Jan 2011 10:34:12 +0300
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=suvRYYNRXzlrSq4SVsDbgsCfOTEAvPuQ60CzHrGQB7WNW7xrPeB9Gn+vl3QaKRAtnP 4pWDAAzaEk2Ru3/ACNrODvuPZ/WEnv0zk51N31a90MZg4kkOA4npFPxkz3HoDcNecy02 pMh6pX8c+MEqnDLgvGYncogr0k+P3GnfGcjHY=

Is it already implemented

ruby_block do
  code do
    sleep 1
  end
  notifies :restart, resources(:service => :nginx80)
end

2011/1/7 Noah Kantrowitz < "> >
Random feature idea from #chef-hacking tonight that doesn't seem that hard: allow giving a block to notifies on a resource. It would internally be the same as https://github.com/opscode/java-quick-start/blob/master/cookbooks/dbapp/recipes/db_bootstrap.rb#L37 but without all the extra typing. To my sleep-addled brain it looks like it wouldn't be hard to implement. Thoughts?

--Noah





Archive powered by MHonArc 2.6.16.

§