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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 176e23fb0bc75352642ae32a6d0178bc9b39cd45
4
- data.tar.gz: 83c40631d570d1eccecf4161a439972801230774
3
+ metadata.gz: 52775ff4fff39ea404a73c584028ff0450b10906
4
+ data.tar.gz: 3ca35b2024bf2f24c19fa328c7381c6bb5a1344b
5
5
  SHA512:
6
- metadata.gz: c16b4a240d1cd9f2abe42b999409aa1798b370805115f6d12b164f0af91219e9fcd55cc9de4d06939a5d0a6429cb75b3a5e22de381bd7cb87bac24a9b8721031
7
- data.tar.gz: 44af8726c0dbaa4b37687dcfa4f0e5dc4c9585346f59122a5fd8f59f9f491e3ff27ae22374e0adedc9b87f8b54a467d90014118b859f3f8de489f7d7886e6591
6
+ metadata.gz: 2b977363dccadf30fe2fb33f4d304b1220ecae92f239d5d9528cec9e97f81398b4ac07825097e9b3ff243de23b819dcd12e71bec77869be4e39b2c9c785ece35
7
+ data.tar.gz: 68ef835355640b0b7bf6f767bdcdd61e2f05ee4a1456d0b789751e9fecd0ef741bc42d316be6dd7e29ca90a43a7aca5a9af816cbd9b5e3f0faa705278be56f8c
@@ -1,3 +1,3 @@
1
1
  module Control
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -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.2
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-14 00:00:00.000000000 Z
11
+ date: 2015-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport