Skip to content

Instantly share code, notes, and snippets.

@ponko2
Created April 10, 2015 11:46
Show Gist options
  • Save ponko2/53f12cd0f6eb339b3a27 to your computer and use it in GitHub Desktop.
Save ponko2/53f12cd0f6eb339b3a27 to your computer and use it in GitHub Desktop.
itamaeでdelayedなnotifiesが連鎖したときの実行結果
execute 'task1' do
command 'echo "task1"'
notifies :run, 'execute[task2]', :delayed
end
execute 'task2' do
command 'echo "task2"'
notifies :run, 'execute[task3]', :delayed
action :nothing
end
execute 'task3' do
command 'echo "task3"'
notifies :run, 'execute[task4]', :delayed
action :nothing
end
execute 'task4' do
command 'echo "task4"'
action :nothing
end
INFO : Starting Itamae...
INFO : Recipe: /tmp/cookbooks/test/default.rb
INFO : execute[task1] executed will change from 'false' to 'true'
INFO : Notifying run to execute resource 'task2' (delayed)
INFO : execute[task2] executed will change from 'false' to 'true'
INFO : Notifying run to execute resource 'task3' (delayed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment