Sha256: e47ca03e45093f9e12b4ccdd76b31835549b25e691a2b00fc36fe46577a7c003

Contents?: true

Size: 604 Bytes

Versions: 12

Compression:

Stored size: 604 Bytes

Contents

namespace :delayed_job do
  desc "Stop the delayed_job process"
  task :stop, :roles => :app do
    run "cd #{current_path}; RAILS_ENV=production script/delayed_job stop"
  end

  desc "Start the delayed_job process"
  task :start, :roles => :app do
    run "cd #{current_path}; RAILS_ENV=production script/delayed_job start"
  end

  desc "Restart the delayed_job process"
  task :restart, :roles => :app do
    run "cd #{current_path}; RAILS_ENV=production script/delayed_job restart"
  end

  desc "delayed_job status"
  task :status, :roles => :app do
    run "ps aux | grep 'delayed_job'"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
crossroads_capistrano-1.3.0 lib/crossroads_capistrano/recipes/delayed_job.rb
crossroads_capistrano-1.2.9 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.8 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.7 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.6 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.5 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.4 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.3 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.2 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.1 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.2.0 lib/crossroads_capistrano/delayed_job.rb
crossroads_capistrano-1.1.0 lib/crossroads_capistrano/delayed_job.rb