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