process_controller 0.0.2 → 0.0.3
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/control/version.rb +1 -1
- data/lib/control_helper.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52775ff4fff39ea404a73c584028ff0450b10906
|
4
|
+
data.tar.gz: 3ca35b2024bf2f24c19fa328c7381c6bb5a1344b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b977363dccadf30fe2fb33f4d304b1220ecae92f239d5d9528cec9e97f81398b4ac07825097e9b3ff243de23b819dcd12e71bec77869be4e39b2c9c785ece35
|
7
|
+
data.tar.gz: 68ef835355640b0b7bf6f767bdcdd61e2f05ee4a1456d0b789751e9fecd0ef741bc42d316be6dd7e29ca90a43a7aca5a9af816cbd9b5e3f0faa705278be56f8c
|
data/lib/control/version.rb
CHANGED
data/lib/control_helper.rb
CHANGED
@@ -75,6 +75,7 @@ module ControlHelper
|
|
75
75
|
p 'checking if there\'s a running process'
|
76
76
|
old_pid = find_app_pid(options)
|
77
77
|
if old_pid
|
78
|
+
app_name = options.fetch(Control_P::OPTIONS_ATTRIBUTES[:app_name], '')
|
78
79
|
p "#{app_name} is already running. old_pid is #{old_pid} exiting"
|
79
80
|
exit(1)
|
80
81
|
end
|
@@ -103,11 +104,11 @@ module ControlHelper
|
|
103
104
|
return true if res
|
104
105
|
sleep 5
|
105
106
|
old_pid = find_app_pid(options)
|
107
|
+
app_name = options.fetch(Control_P::OPTIONS_ATTRIBUTES[:app_name], '')
|
106
108
|
if old_pid
|
107
109
|
p "error in kill process #{app_name}. found pid #{old_pid} try number #{try}"
|
108
110
|
exit(1) if try == num_tries
|
109
111
|
else
|
110
|
-
app_name = options.fetch(Control_P::OPTIONS_ATTRIBUTES[:app_name], '')
|
111
112
|
p "#{app_name}, it's dead."
|
112
113
|
return true
|
113
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ohad partuck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|