capistrano-delayed_job 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/capistrano-delayed_job.gemspec +4 -4
- data/templates/runit/finish.erb +10 -10
- metadata +4 -4
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GEM
|
|
9
9
|
net-sftp (>= 2.0.0)
|
10
10
|
net-ssh (>= 2.0.14)
|
11
11
|
net-ssh-gateway (>= 1.1.0)
|
12
|
-
capistrano-base_helper (0.0.
|
12
|
+
capistrano-base_helper (0.0.10)
|
13
13
|
capistrano (>= 2.15.5)
|
14
14
|
faraday (0.8.8)
|
15
15
|
multipart-post (~> 1.2.0)
|
@@ -65,5 +65,5 @@ PLATFORMS
|
|
65
65
|
DEPENDENCIES
|
66
66
|
bundler (>= 1.3.0)
|
67
67
|
capistrano (>= 2.15.5)
|
68
|
-
capistrano-base_helper (>= 0.0.
|
68
|
+
capistrano-base_helper (>= 0.0.10)
|
69
69
|
jeweler (~> 1.8.6)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capistrano-delayed_job"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Leif Ringstad"]
|
@@ -44,18 +44,18 @@ Gem::Specification.new do |s|
|
|
44
44
|
|
45
45
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
46
|
s.add_runtime_dependency(%q<capistrano>, [">= 2.15.5"])
|
47
|
-
s.add_runtime_dependency(%q<capistrano-base_helper>, [">= 0.0.
|
47
|
+
s.add_runtime_dependency(%q<capistrano-base_helper>, [">= 0.0.10"])
|
48
48
|
s.add_development_dependency(%q<bundler>, [">= 1.3.0"])
|
49
49
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.6"])
|
50
50
|
else
|
51
51
|
s.add_dependency(%q<capistrano>, [">= 2.15.5"])
|
52
|
-
s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.
|
52
|
+
s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.10"])
|
53
53
|
s.add_dependency(%q<bundler>, [">= 1.3.0"])
|
54
54
|
s.add_dependency(%q<jeweler>, ["~> 1.8.6"])
|
55
55
|
end
|
56
56
|
else
|
57
57
|
s.add_dependency(%q<capistrano>, [">= 2.15.5"])
|
58
|
-
s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.
|
58
|
+
s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.10"])
|
59
59
|
s.add_dependency(%q<bundler>, [">= 1.3.0"])
|
60
60
|
s.add_dependency(%q<jeweler>, ["~> 1.8.6"])
|
61
61
|
end
|
data/templates/runit/finish.erb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
# <% c = Capistrano::BaseHelper::get_capistrano_instance %>
|
8
8
|
# Variable name setup
|
9
9
|
<%
|
10
|
-
exit_code = "EXIT_CODE_#{Capistrano::BaseHelper.
|
11
|
-
exit_status = "EXIT_STATUS_#{Capistrano::BaseHelper.
|
12
|
-
min_auto_restart_interval = "MIN_AUTO_RESTART_INTERVAL_#{Capistrano::BaseHelper.
|
13
|
-
max_auto_restart_count = "MAX_AUTO_RESTART_COUNT_#{Capistrano::BaseHelper.
|
14
|
-
auto_restart_count_clear_interval = "AUTO_RESTART_COUNT_CLEAR_INTERVAL_#{Capistrano::BaseHelper.
|
10
|
+
exit_code = "EXIT_CODE_#{Capistrano::BaseHelper.user_app_env_underscore_short_char_safe}_#{c.fetch(:delayed_job_runit_service_name)}".upcase
|
11
|
+
exit_status = "EXIT_STATUS_#{Capistrano::BaseHelper.user_app_env_underscore_short_char_safe}_#{c.fetch(:delayed_job_runit_service_name)}".upcase
|
12
|
+
min_auto_restart_interval = "MIN_AUTO_RESTART_INTERVAL_#{Capistrano::BaseHelper.user_app_env_underscore_short_char_safe}_#{c.fetch(:delayed_job_runit_service_name)}".upcase
|
13
|
+
max_auto_restart_count = "MAX_AUTO_RESTART_COUNT_#{Capistrano::BaseHelper.user_app_env_underscore_short_char_safe}_#{c.fetch(:delayed_job_runit_service_name)}".upcase
|
14
|
+
auto_restart_count_clear_interval = "AUTO_RESTART_COUNT_CLEAR_INTERVAL_#{Capistrano::BaseHelper.user_app_env_underscore_short_char_safe}_#{c.fetch(:delayed_job_runit_service_name)}".upcase
|
15
15
|
%>
|
16
16
|
#
|
17
17
|
# The following variables are set by Runit:
|
@@ -45,18 +45,18 @@ auto_restart_count_clear_interval = "AUTO_RESTART_COUNT_CLEAR_INTERVAL_#{Capistr
|
|
45
45
|
|
46
46
|
# ./run's exit code
|
47
47
|
<%= "#{exit_code}" %>=$1
|
48
|
-
|
48
|
+
|
49
49
|
# The least significant byte of the exit status as determined by waitpid(2);
|
50
50
|
# for instance it is 0 if ./run exited normally, and the signal number if
|
51
51
|
# ./run was terminated by a signal.
|
52
52
|
<%= "#{exit_status}" %>=$2
|
53
|
-
|
53
|
+
|
54
54
|
# The minimum delay (in seconds) between automatic restarts
|
55
55
|
<%= "#{min_auto_restart_interval}" %>=<%= c.fetch(:delayed_job_restart_interval) %>
|
56
|
-
|
56
|
+
|
57
57
|
# The maximum number of automatic restarts allowed
|
58
58
|
<%= "#{max_auto_restart_count}" %>=<%= c.fetch(:delayed_job_restart_count) %>
|
59
|
-
|
59
|
+
|
60
60
|
# Reset the restart count if <%= "#{auto_restart_count_clear_interval}" %> seconds
|
61
61
|
# have elapsed since the last automatic restart.
|
62
62
|
<%= "#{auto_restart_count_clear_interval}" %>=<%= c.fetch(:delayed_job_autorestart_clear_interval) %>
|
@@ -68,7 +68,7 @@ export <%= "#{max_auto_restart_count}" %>
|
|
68
68
|
export <%= "#{auto_restart_count_clear_interval }" %>
|
69
69
|
|
70
70
|
### Normally no changes should be made after this point
|
71
|
-
|
71
|
+
|
72
72
|
echo "<%= "User: #{c.fetch(:user)} Application: #{c.fetch(:application)} Service: #{c.fetch(:delayed_job_runit_service_name)}" %> finish; exit code: $<%= "#{exit_code}" %>; exit status: $<%= "#{exit_status}" %>"
|
73
73
|
|
74
74
|
if test $<%= "#{exit_code}" %> -eq 0 -a $<%= "#{exit_status}" %> -eq 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-delayed_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0.0.
|
37
|
+
version: 0.0.10
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.0.
|
45
|
+
version: 0.0.10
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: bundler
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
113
|
version: '0'
|
114
114
|
segments:
|
115
115
|
- 0
|
116
|
-
hash:
|
116
|
+
hash: 2084015308296682882
|
117
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
118
|
none: false
|
119
119
|
requirements:
|