lib/capistrano/tasks/rainbows.rake in capistrano-devops-0.0.5 vs lib/capistrano/tasks/rainbows.rake in capistrano-devops-0.0.6

- old
+ new

@@ -1,10 +1,11 @@ set :rainbows_user, ->{ fetch(:user) } set :rainbows_pid, ->{ "#{current_path}/tmp/pids/rainbows.pid" } set :rainbows_config, ->{ "#{shared_path}/config/rainbows.rb" } set :rainbows_log, ->{ "#{shared_path}/log/rainbows.log" } set :rainbows_workers, 2 +set :rainbows_timeout, 30 namespace :rainbows do desc "Setup Rainbows initializer and app configuration" task :setup do on roles :app do @@ -22,10 +23,10 @@ end %w[start stop restart].each do |command| desc "#{command} rainbows" task command do - on roles :app do + on roles(:app), in: :sequence, wait: 5 do command_string = "rainbows_#{fetch(:application)} #{command}" execute :service, command_string end end end