Sha256: 9040300f01de265cdea9147b8b2bf3e938fcff1b840216647f420fa204300f92

Contents?: true

Size: 762 Bytes

Versions: 22

Compression:

Stored size: 762 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  define_recipe :delayed_job do
    namespace :delayed_job do
      desc "Start delayed_job"
      task :start, :only => {:delayed_job => true} do
        sudo "/usr/bin/monit start all -g dj_#{application}"
      end
      desc "Stop delayed_job"
      task :stop, :only => {:delayed_job => true} do
        sudo "/usr/bin/monit stop all -g dj_#{application}"
      end
      desc "Restart delayed_job"
      task :restart, :only => {:delayed_job => true} do
        sudo "/usr/bin/monit restart all -g dj_#{application}"
      end        
    end
  
    after "deploy:restart", "delayed_job:restart"
    after "deploy:start",   "delayed_job:start"
    after "deploy:stop",    "delayed_job:stop"
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
factorylabs-fdlcap-0.2.4 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.2.5 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.2.6 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.2.7 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.0 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.1 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.10 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.11 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.15 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.16 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.17 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.18 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.19 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.2 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.20 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.3 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.4 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.5 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.6 lib/fdlcap/recipes/delayed_job.rb
factorylabs-fdlcap-0.3.7 lib/fdlcap/recipes/delayed_job.rb