Created
April 10, 2015 11:46
-
-
Save ponko2/53f12cd0f6eb339b3a27 to your computer and use it in GitHub Desktop.
itamaeでdelayedなnotifiesが連鎖したときの実行結果
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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