Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task :restart, :roles => :web do
- parallel do |session|
- session.when "in?(:legacy)", "touch #{current_path}/tmp/restart.txt"
- session.when "! in?(:legacy)", "#{god_path} restart unicorn"
- end
- end
Add Comment
Please, Sign In to add comment