Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created October 24, 2016 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4a1697071386bc3d0ad4fe4066bd368f to your computer and use it in GitHub Desktop.
Save anonymous/4a1697071386bc3d0ad4fe4066bd368f to your computer and use it in GitHub Desktop.
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