Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created September 29, 2010 18:52
Show Gist options
  • Save adamhjk/603311 to your computer and use it in GitHub Desktop.
Save adamhjk/603311 to your computer and use it in GitHub Desktop.
# Will only work for resources that appear *after* this one in the run list
ruby_block "foo" do
block do
r = resources(:service => "bar")
r.action :stop
end
end
# Will actually stop itself
service "bar" do
action :start
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment