Created
April 10, 2015 07:51
-
-
Save ponko2/b6904bccd4294c0cb78e to your computer and use it in GitHub Desktop.
itamaeでimmediatelyな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]', :immediately | |
end | |
execute 'task2' do | |
command 'echo "task2"' | |
notifies :run, 'execute[task3]', :immediately | |
action :nothing | |
end | |
execute 'task3' do | |
command 'echo "task3"' | |
notifies :run, 'execute[task4]', :immediately | |
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' (immediately) | |
INFO : execute[task2] executed will change from 'false' to 'true' | |
INFO : Notifying run to execute resource 'task3' (immediately) | |
INFO : execute[task3] executed will change from 'false' to 'true' | |
INFO : Notifying run to execute resource 'task4' (immediately) | |
INFO : execute[task4] executed will change from 'false' to 'true' | |
INFO : Notifying run to execute resource 'task3' (immediately) | |
INFO : execute[task3] executed will change from 'false' to 'true' | |
INFO : Notifying run to execute resource 'task4' (immediately) | |
INFO : execute[task4] executed will change from 'false' to 'true' | |
INFO : Notifying run to execute resource 'task4' (immediately) | |
INFO : execute[task4] executed will change from 'false' to 'true' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment