Created
May 14, 2012 21:20
-
-
Save bcg/2697205 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
tasklist = 'aof-stuff' | |
task = 'cp-aofs' | |
if hostname ~= /serf/ | |
SWFJob.wait_on(tasklist,task) do |result| | |
if system('cp this to/that') | |
result = SWFJob.SUCCESS | |
else | |
result = SWFJob.FAIL | |
end | |
end | |
elsif hostname ~= /randomtask/ | |
SWFJob.wait_on(tasklist,task) do |result| | |
if system('cp this to/that') | |
result = SWFJob.SUCCESS | |
else | |
result = SWFJob.FAIL | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment