Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement