Sha256: 71333f407f7dee46da71abddcd731d437cc9978555112d1246e33e39f32cebde

Contents?: true

Size: 433 Bytes

Versions: 6

Compression:

Stored size: 433 Bytes

Contents

namespace :deploy do
  before :starting, :check_sidekiq_hooks do
    invoke 'sidekiq:add_default_hooks' if fetch(:sidekiq_default_hooks)
  end
end

namespace :sidekiq do
  task :add_default_hooks do
    after 'deploy:starting', 'sidekiq:quiet' if Rake::Task.task_defined?('sidekiq:quiet')
    after 'deploy:updated', 'sidekiq:stop'
    after 'deploy:published', 'sidekiq:start'
    after 'deploy:failed', 'sidekiq:restart'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capistrano-sidekiq-3.0.0.alpha.2 lib/capistrano/tasks/sidekiq.rake
capistrano-sidekiq-2.3.1 lib/capistrano/tasks/sidekiq.rake
capistrano-sidekiq-3.0.0.alpha.1 lib/capistrano/tasks/sidekiq.rake
capistrano-sidekiq-2.3.0 lib/capistrano/tasks/sidekiq.rake
capistrano-sidekiq-2.2.0 lib/capistrano/tasks/sidekiq.rake
capistrano-sidekiq-2.1.0 lib/capistrano/tasks/sidekiq.rake