Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.28 KB | None | 0 0
  1. namespace :abc do
  2.     desc 'Description... go_offline[x|y]'
  3.     task :go_offline, :status do |t, args|
  4.         on roles(:app) do
  5.             state = args[:status]
  6.             # if fileA does not exists break/stop code execution here
  7.  
  8.             # ... more code ...
  9.         end
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement