lib/capistrano/tasks/rainbows.rake in capistrano-devops-0.0.7 vs lib/capistrano/tasks/rainbows.rake in capistrano-devops-0.0.8

- old
+ new

@@ -25,10 +25,12 @@ %w[start stop restart].each do |command| desc "#{command} rainbows" task command do on roles(:app), in: :sequence, wait: 5 do command_string = "rainbows_#{fetch(:application)} #{command}" - execute :service, command_string + as :root do + execute :service, command_string + end end end end end