cap-recipes 0.3.28 → 0.3.29

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.
@@ -181,7 +181,7 @@ These recipes are for tobi's delayed_job plugin for background job queue process
181
181
 
182
182
  h4. Configuration
183
183
 
184
- * delayed_script_path - the path to the delayed job script [default: 'script/delayed_job']
184
+ * delayed_script_path - the path to the delayed job script [default: '#{current_path}/script/delayed_job']
185
185
  * delayed_job_env - the rails environment [default: 'production']
186
186
 
187
187
  h4. Tasks
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 28
4
+ :patch: 29
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cap-recipes}
8
- s.version = "0.3.28"
8
+ s.version = "0.3.29"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Esquenazi"]
@@ -10,14 +10,14 @@ Capistrano::Configuration.instance(true).load do
10
10
  desc "Start delayed_job process"
11
11
  task :start, :roles => delayed_job_role do
12
12
  utilities.with_role(delayed_job_role) do
13
- try_sudo "#{base_ruby_path}/bin/ruby #{delayed_script_path} start #{delayed_job_env}"
13
+ try_sudo "RAILS_ENV=#{delayed_job_env} #{base_ruby_path}/bin/ruby #{delayed_script_path} start"
14
14
  end
15
15
  end
16
16
 
17
17
  desc "Stop delayed_job process"
18
18
  task :stop, :roles => delayed_job_role do
19
19
  utilities.with_role(delayed_job_role) do
20
- try_sudo "#{base_ruby_path}/bin/ruby #{delayed_script_path} stop #{delayed_job_env}"
20
+ try_sudo "RAILS_ENV=#{delayed_job_env} #{base_ruby_path}/bin/ruby #{delayed_script_path} stop"
21
21
  end
22
22
  end
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.28
4
+ version: 0.3.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi