Sha256: 5d8414befdb36bf6fc70b748272d9b834bd9f3f4a01ec71cbcf8fe77c265113e

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

Capistrano::Configuration.instance.load do
  set(:delayed_job_application_name) { "#{application}_delayed_job" }
  namespace :delayed_job do
    namespace :upstart do
      %w(restart start stop status).each do |t|
        desc "Perform #{t} of the delayed_job service"
        task t, roles: :app, except: { no_release: true } do
          sudo "#{t} #{delayed_job_application_name}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
elocal_capistrano-1.0.4 lib/elocal_capistrano/delayed_job.rb
elocal_capistrano-1.0.3 lib/elocal_capistrano/delayed_job.rb
elocal_capistrano-1.0.2 lib/elocal_capistrano/delayed_job.rb