procodile 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1bd3a47f7f701a8430b69a48bb9f114a6e6f7a8
4
- data.tar.gz: e1df71b29eb1f5836132539beb2691a85f390301
3
+ metadata.gz: 362a13aa9b06e4850e9b004e02cbfb5895bb54fe
4
+ data.tar.gz: 05af226142d708e1764c4f2ac0cba68026d29a53
5
5
  SHA512:
6
- metadata.gz: f09564099dc0dabd736a48677b7f475a6ef1d723f95aabcd9c7470277ad6d411da63b75ba02041ef4f9c3d5dfb6425c0296019cb216a3489437e67b42ba0e83c
7
- data.tar.gz: 4fe1b93764fb2a2c041d55ce996ebd6003c71df83d14da3540a3184ceae9566ed7fff0a32c8b37ec7637dd98f0a1dbf8bbb0847f0462cb3f5c0bcb990f3ab413
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
@@ -1,3 +1,3 @@
1
1
  module Procodile
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
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.5
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: 2016-10-23 00:00:00.000000000 Z
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.1
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