-
-
Save anonymous/4a1697071386bc3d0ad4fe4066bd368f to your computer and use it in GitHub Desktop.
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
namespace :abc do | |
desc 'Description... go_offline[x|y]' | |
task :go_offline, :status do |t, args| | |
on roles(:app) do | |
state = args[:status] | |
# if fileA does not exists break/stop code execution here | |
# ... more code ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment