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.