Sha256: 630d3c30c9db5b5587d772e86b7bfd8ac8704c4d3ed544b49bb5cdc923b71a54
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :bdrb do desc "After update_code you want to reindex" task :reindex, :roles => [:app, :backgroundrb], :only => {:backgroundrb => true} do run "/engineyard/bin/searchd #{application} reindex" end desc "Start Backgroundrb" task :start, :roles => [:app, :backgroundrb], :only => {:backgroundrb => true} do sudo "/usr/bin/monit start all -g backgroundrb_#{application}" end desc "Stop Backgroundrb" task :stop, :roles => [:app, :backgroundrb], :only => {:backgroundrb => true} do sudo "/usr/bin/monit stop all -g backgroundrb_#{application}" end desc "Restart Backgroundrb" task :restart, :roles => [:app, :backgroundrb], :only => {:backgroundrb => true} do sudo "/usr/bin/monit restart all -g backgroundrb_#{application}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engineyard-eycap-0.3.8 | lib/eycap/recipes/backgroundrb.rb |