capistrano-hivequeen 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  ## If your rubyforge_project name is different, then edit it and comment out
7
7
  ## the sub! line in the Rakefile
8
8
  s.name = 'capistrano-hivequeen'
9
- s.version = '0.8.0'
9
+ s.version = '0.9.0'
10
10
  s.date = Time.now.strftime("%Y-%m-%d")
11
11
 
12
12
  ## Make sure your summary is short. The description may be as long
@@ -30,6 +30,9 @@ Capistrano::Configuration.instance(:must_exist).load do
30
30
  # Time to wait for Background jobs processes to start/stop
31
31
  set :bg_wait_time, 30
32
32
 
33
+ # Option to skip background tasks
34
+ set :skip_bg, false
35
+
33
36
  # Load capistrano multi-stage extension
34
37
  require 'fileutils' # required until https://github.com/capistrano/capistrano-ext/commit/930ca840a0b4adad0ec53546790b3f5ffe726538 is released
35
38
  require 'capistrano/ext/multistage'
@@ -78,9 +78,16 @@ Capistrano::Configuration.instance.load do
78
78
  %w(start stop restart).each do |action|
79
79
  desc "#{action} the delayed_job processes"
80
80
  task action, :roles => fetch(:bg_roles, [:bg]) do
81
- run "sv -w #{bg_wait_time } #{action} `cd /etc/service; ls -d dj_*`"
81
+ next if skip_bg
82
+ begin
83
+ run "sv -w #{bg_wait_time } #{action} `cd /etc/service; ls -d dj_*`"
84
+ rescue Capistrano::CommandError
85
+ logger.debug "Error running bg:#{action}. Consider running with '-s skip_bg=true'"
86
+ raise $!
87
+ end
82
88
  end
89
+
83
90
  end
84
- end
85
91
 
92
+ end
86
93
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-hivequeen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-14 00:00:00.000000000 Z
12
+ date: 2012-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano-ext
16
- requirement: &2169491680 !ruby/object:Gem::Requirement
16
+ requirement: &70125839727440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2169491680
24
+ version_requirements: *70125839727440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano
27
- requirement: &2169491100 !ruby/object:Gem::Requirement
27
+ requirement: &70125839725000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2169491100
35
+ version_requirements: *70125839725000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: json
38
- requirement: &2169490520 !ruby/object:Gem::Requirement
38
+ requirement: &70125839724140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2169490520
46
+ version_requirements: *70125839724140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: excon
49
- requirement: &2169489260 !ruby/object:Gem::Requirement
49
+ requirement: &70125839721500 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.6.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2169489260
57
+ version_requirements: *70125839721500
58
58
  description: Capistrano extensions for interacting with HiveQueen
59
59
  email: aaron@kickstarter.com
60
60
  executables: []