Sha256: a5187d88e77abf1dea568c6f3a05c0de6ff7f29f444d4ff9cc55cc76133bf070

Contents?: true

Size: 813 Bytes

Versions: 6

Compression:

Stored size: 813 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 dj_#{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 dj_#{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 dj_#{monit_group}"
    end
    
  end #namespace
end #Capistrano::Configuration

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
eycap-0.6.12 lib/eycap/recipes/delayed_job.rb
eycap-0.6.11 lib/eycap/recipes/delayed_job.rb
eycap-0.6.10 lib/eycap/recipes/delayed_job.rb
eycap-0.6.9 lib/eycap/recipes/delayed_job.rb
eycap-0.6.8 lib/eycap/recipes/delayed_job.rb
eycap-0.6.7 lib/eycap/recipes/delayed_job.rb