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
engineyard-eycap-0.3.10 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.11 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.3.9 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.0 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.1 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.10 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.11 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.12 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.14 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.15 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.2 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.3 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.4 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.5 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.6 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.7 lib/eycap/recipes/backgroundrb.rb
engineyard-eycap-0.4.9 lib/eycap/recipes/backgroundrb.rb
gramos-robbie-0.0.1 lib/robbie/recipes/backgroundrb.rb
gramos-robbie-0.0.2 lib/robbie/recipes/backgroundrb.rb
square-eycap-0.4.13 lib/eycap/recipes/backgroundrb.rb