Sha256: 1e8f915befceb66b4b052451a4762105c0589bc62e825aac6539741c20215e16

Contents?: true

Size: 826 Bytes

Versions: 56

Compression:

Stored size: 826 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

56 entries across 56 versions & 7 rubygems

Version Path
eycap-0.5.13 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.12 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.11 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.10 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.9 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.8 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.7 lib/eycap/recipes/backgroundrb.rb
newrelic-eycap-0.5.6.0 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.6 lib/eycap/recipes/backgroundrb.rb
gabetax-eycap-0.5.6 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.5 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.3 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.2 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.1 lib/eycap/recipes/backgroundrb.rb
eycap-0.5.0 lib/eycap/recipes/backgroundrb.rb
eycap-0.4.16 lib/eycap/recipes/backgroundrb.rb