1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

fix capistrano task

This commit is contained in:
Tejas Ravindra Mandke 2013-01-15 13:17:22 -08:00
parent 593ce38894
commit 2307820e23

View file

@ -14,7 +14,7 @@ Capistrano::Configuration.instance.load do
namespace :sidekiq do
def for_each_process(&block)
fetch(:sidekiq_processes).times do |idx|
yield((process == 0 ? "#{fetch(:sidekiq_pid)}" : "#{fetch(:sidekiq_pid)}-#{process}"), idx)
yield((idx == 0 ? "#{fetch(:sidekiq_pid)}" : "#{fetch(:sidekiq_pid)}-#{idx}"), idx)
end
end