Sha256: ae7d5ca7a333fb0d3a791073bd0b5edcb8a445bc88dac8fd00aca78758c10088

Contents?: true

Size: 818 Bytes

Versions: 6

Compression:

Stored size: 818 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do

  namespace :bdrb do
    desc "After update_code you want to reindex"
    task :reindex, :roles => :app, :only => {:backgroundrb => true} do
      run "/engineyard/bin/searchd #{application} reindex"
    end
  
    desc "Start Backgroundrb"
    task :start, :roles => :app, :only => {:backgroundrb => true} do
      sudo "/usr/bin/monit start all -g backgroundrb_#{application}"
    end
    desc "Stop Backgroundrb"
    task :stop, :roles => :app, :only => {:backgroundrb => true} do
      sudo "/usr/bin/monit stop all -g backgroundrb_#{application}"
    end
    desc "Restart Backgroundrb"
    task :restart, :roles => :app, :only => {:backgroundrb => true} do
      sudo "/usr/bin/monit restart all -g backgroundrb_#{application}"
    end        
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
engineyard-eycap-0.3.3 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.4 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.5 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.6.1 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.6 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.7 lib/eycap/recipes/backgroundrb.rb