procodile 1.0.5 → 1.0.6
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.
- checksums.yaml +4 -4
- data/lib/procodile/cli.rb +18 -0
- data/lib/procodile/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 362a13aa9b06e4850e9b004e02cbfb5895bb54fe
|
|
4
|
+
data.tar.gz: 05af226142d708e1764c4f2ac0cba68026d29a53
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '09418e90b2052c698bf9846ddcfc83701a50779f1bc6c488e693bc9db20d016fea0bdca558dac130587f55254c30ca1f094b0e8ff61e0c31d9218c1365986f13'
|
|
7
|
+
data.tar.gz: 0f1eafdaf147330bc02f726b1346af937ab05eced950a6a1d6239ced6d4615110148256c7cbcb96611106fef96bdb5f67bcbd1adee26c99f5d1c95b01466bdec
|
data/lib/procodile/cli.rb
CHANGED
|
@@ -172,6 +172,11 @@ module Procodile
|
|
|
172
172
|
opts.on("-s", "--stop-supervisor", "Stop the supervisor process when all processes are stopped") do
|
|
173
173
|
cli.options[:stop_supervisor] = true
|
|
174
174
|
end
|
|
175
|
+
|
|
176
|
+
opts.on("--wait", "Wait until supervisor has stopped before exiting") do
|
|
177
|
+
cli.options[:wait_until_supervisor_stopped] = true
|
|
178
|
+
end
|
|
179
|
+
|
|
175
180
|
end
|
|
176
181
|
command def stop
|
|
177
182
|
if supervisor_running?
|
|
@@ -188,6 +193,19 @@ module Procodile
|
|
|
188
193
|
if @options[:stop_supervisor]
|
|
189
194
|
puts "Supervisor will be stopped when processes are stopped."
|
|
190
195
|
end
|
|
196
|
+
|
|
197
|
+
if @options[:wait_until_supervisor_stopped]
|
|
198
|
+
puts "Waiting for supervisor to stop..."
|
|
199
|
+
loop do
|
|
200
|
+
sleep 1
|
|
201
|
+
if supervisor_running?
|
|
202
|
+
sleep 1
|
|
203
|
+
else
|
|
204
|
+
puts "Supervisor has stopped"
|
|
205
|
+
exit 0
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
191
209
|
else
|
|
192
210
|
raise Error, "Procodile supervisor isn't running"
|
|
193
211
|
end
|
data/lib/procodile/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: procodile
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adam Cooke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
68
68
|
version: '0'
|
|
69
69
|
requirements: []
|
|
70
70
|
rubyforge_project:
|
|
71
|
-
rubygems_version: 2.5.
|
|
71
|
+
rubygems_version: 2.5.2
|
|
72
72
|
signing_key:
|
|
73
73
|
specification_version: 4
|
|
74
74
|
summary: This gem will help you run Ruby processes from a Procfile on Linux servers
|