Sha256: 731c065e43ebbf55c3ff3083e960e9d04723f00db30af679e61d075e8ed75534

Contents?: true

Size: 845 Bytes

Versions: 5

Compression:

Stored size: 845 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 "#{fetch(:engineyard_bin, "/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

5 entries across 5 versions & 1 rubygems

Version Path
eycap-0.6.12 lib/eycap/recipes/backgroundrb.rb
eycap-0.6.11 lib/eycap/recipes/backgroundrb.rb
eycap-0.6.10 lib/eycap/recipes/backgroundrb.rb
eycap-0.6.9 lib/eycap/recipes/backgroundrb.rb
eycap-0.6.8 lib/eycap/recipes/backgroundrb.rb