Sha256: bf758001906889dc807d79865b2cb9fa9fad5b26032e1d988493a49fb9bcb123

Contents?: true

Size: 813 Bytes

Versions: 1

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], :except => {:dj => false} 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], :except => {:dj => false} 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], :except => {:dj => false} do
      sudo "/usr/bin/monit stop all -g #{monit_group}"
    end
    
  end #namespace
end #Capistrano::Configuration

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eycap-0.5.10 lib/eycap/recipes/delayed_job.rb