Sha256: 7c40978085bedc2724d516492f0bac0fe3c0d72c581109e0a41c5cc35ec4653f

Contents?: true

Size: 804 Bytes

Versions: 20

Compression:

Stored size: 804 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  namespace :dj do
    desc <<-DESC
    Start the Delayed Job queue along with any in the same monit_group.
    DESC
    task :start, :roles => [:app], :only => {:dj => true} do
      sudo "/usr/bin/monit start all -g #{monit_group}"
    end

    desc <<-DESC
    Restart the Delayed Job queue along with any in the same monit_group.
    DESC
    task :restart, :roles => [:app], :only => {:dj => true} do
      sudo "/usr/bin/monit restart all -g #{monit_group}"
    end

    desc <<-DESC
    Stop all monit group members, of which delayed job can be a part of.
    DESC
    task :stop, :roles => [:app], :only => {:dj => true} do
      sudo "/usr/bin/monit stop all -g #{monit_group}"
    end
    
  end #namespace
end #Capistrano::Configuration

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
eycap-0.6.6 lib/eycap/recipes/delayed_job.rb
eycap-0.6.5 lib/eycap/recipes/delayed_job.rb
eycap-0.6.4 lib/eycap/recipes/delayed_job.rb
eycap-0.6.3 lib/eycap/recipes/delayed_job.rb
eycap-0.6.2 lib/eycap/recipes/delayed_job.rb
eycap-0.6.1 lib/eycap/recipes/delayed_job.rb
eycap-0.6.0 lib/eycap/recipes/delayed_job.rb
eycap-0.5.23 lib/eycap/recipes/delayed_job.rb
eycap-0.5.22 lib/eycap/recipes/delayed_job.rb
eycap-0.5.21 lib/eycap/recipes/delayed_job.rb
eycap-0.5.20 lib/eycap/recipes/delayed_job.rb
eycap-0.5.19 lib/eycap/recipes/delayed_job.rb
eycap-0.5.18 lib/eycap/recipes/delayed_job.rb
eycap-0.5.17 lib/eycap/recipes/delayed_job.rb
eycap-0.5.16 lib/eycap/recipes/delayed_job.rb
eycap-0.5.15 lib/eycap/recipes/delayed_job.rb
eycap-0.5.14 lib/eycap/recipes/delayed_job.rb
eycap-0.5.13 lib/eycap/recipes/delayed_job.rb
eycap-0.5.12 lib/eycap/recipes/delayed_job.rb
eycap-0.5.11 lib/eycap/recipes/delayed_job.rb