nesquena-cap-recipes 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 7
2
+ :patch: 8
3
3
  :major: 0
4
4
  :minor: 3
@@ -3,6 +3,7 @@ require 'yaml'
3
3
  Capistrano::Configuration.instance(true).load do
4
4
  set :backgroundrb_host, 'localhost'
5
5
  set :backgroundrb_env , 'production'
6
+ set :base_ruby_path, '/usr'
6
7
 
7
8
  namespace :backgroundrb do
8
9
  # ===============================================================
@@ -11,12 +12,12 @@ Capistrano::Configuration.instance(true).load do
11
12
 
12
13
  desc "Stops the backgroundrb worker processes"
13
14
  task :stop, :roles => :app do
14
- run "cd #{current_path} && #{sudo} ruby script/backgroundrb stop -e #{backgroundrb_env}"
15
+ run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby script/backgroundrb stop"
15
16
  end
16
17
 
17
18
  desc "Starts the backgroundrb worker processes"
18
19
  task :start, :roles => :app do
19
- run "cd #{current_path} && #{sudo} nohup ruby script/backgroundrb start -e #{backgroundrb_env}"
20
+ run "cd #{current_path} && #{sudo} nohup #{base_ruby_path}/bin/ruby script/backgroundrb start"
20
21
  end
21
22
 
22
23
  desc "Restarts a running backgroundrb server."
@@ -1,21 +1,22 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
2
  set :delayed_script_path, 'script/delayed_job'
3
3
  set :delayed_job_env, 'production'
4
+ set :base_ruby_path, '/usr'
4
5
 
5
6
  namespace :delayed_job do
6
7
  desc "Start delayed_job process"
7
8
  task :start, :roles => :app do
8
- run "cd #{current_path} && #{sudo} ruby #{delayed_script_path} start #{delayed_job_env}"
9
+ run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby #{delayed_script_path} start #{delayed_job_env}"
9
10
  end
10
11
 
11
12
  desc "Stop delayed_job process"
12
13
  task :stop, :roles => :app do
13
- run "cd #{current_path} && #{sudo} ruby #{delayed_script_path} stop #{delayed_job_env}"
14
+ run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby #{delayed_script_path} stop #{delayed_job_env}"
14
15
  end
15
16
 
16
17
  desc "Restart delayed_job process"
17
18
  task :restart, :roles => :app do
18
- run "cd #{current_path} && #{sudo} ruby #{delayed_script_path} restart #{delayed_job_env}"
19
+ run "cd #{current_path} && #{sudo} #{base_ruby_path}/bin/ruby #{delayed_script_path} restart #{delayed_job_env}"
19
20
  end
20
21
  end
21
22
  end
@@ -2,6 +2,7 @@ Capistrano::Configuration.instance(true).load do
2
2
  set :juggernaut_config, "#{current_path}/config/juggernaut.yml"
3
3
  set :juggernaut_pid, "#{current_path}/tmp/pids/juggernaut.pid"
4
4
  set :juggernaut_log, "#{current_path}/log/juggernaut.log"
5
+ set :base_ruby_path, '/usr'
5
6
 
6
7
  namespace :juggernaut do
7
8
 
@@ -12,13 +13,13 @@ Capistrano::Configuration.instance(true).load do
12
13
  desc "Starts the juggernaut push server"
13
14
  task :start, :roles => :app do
14
15
  puts "Starting juggernaut push server"
15
- try_sudo "juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}"
16
+ try_sudo "#{base_ruby_path}/bin/juggernaut -c #{juggernaut_config} -d --pid #{juggernaut_pid} --log #{juggernaut_log}"
16
17
  end
17
18
 
18
19
  desc "Stops the juggernaut push server"
19
20
  task :stop, :roles => :app do
20
21
  puts "Stopping juggernaut push server"
21
- try_sudo "juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}"
22
+ try_sudo "#{base_ruby_path}/bin/juggernaut -c #{juggernaut_config} -k * --pid #{juggernaut_pid} --log #{juggernaut_log}"
22
23
  end
23
24
 
24
25
  desc "Restarts the juggernaut push server"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nesquena-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 -07:00
12
+ date: 2009-04-21 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15