process_controller 0.0.8 → 0.0.9

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: d4f8282d1b6740eda4a080f6c131349a2fc38cd7
4
- data.tar.gz: d616f99ae1d8f0734b80809bf38ee370e6ebe45f
3
+ metadata.gz: 4cc2258054f407d45723d0aa2480615a9800f18a
4
+ data.tar.gz: e9d8c4b9caa5519da6184bc25cb05e69a24695cc
5
5
  SHA512:
6
- metadata.gz: 13a6be95655ec1d751c95b68dfe58edbc04e19f5243a675bc2c4e21d0bdf56eb0a10e321bd9971ff774d9a9f47ca19b37b2c5d9554c3f0ec8ec4c03a5ff84489
7
- data.tar.gz: 11419c027bd14c442a3741f426626dc068977df5d6211bb8a4e1bbbe1a3d6ce8909085d991cd0a1e1490eddde394ac29bc2ce48a31a945ca6314528514f13941
6
+ metadata.gz: 3bf05c3983b4bc2cd403726112b12609a87026cbfedad7c77f8cdfc09336531bb7347e86a995aaf70bd381d677df3f7315f76153e339d8a304a76639ea493a20
7
+ data.tar.gz: ee408e76bc57d8a127bcfdcfd8e8104c068912d27ff39a82183d26e6e65b5c13e59c989db5350474ca890d09cdec07fe0524242170d01d67c8df0595517c03b1
@@ -1,3 +1,3 @@
1
1
  module Control
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -99,9 +99,13 @@ module ControlHelper
99
99
  # Note , only valid for http servers
100
100
  def restart_the_app!(options)
101
101
  if app_not_running?(options)
102
+ p 'app not running, starting a new process'
102
103
  start_a_new_process!(options)
103
104
  else
105
+
104
106
  restart_command = options.fetch(Control_P::OPTIONS_ATTRIBUTES[:restart_command])
107
+ p "app running, restarting using #{restart_command}"
108
+
105
109
  `#{restart_command}`
106
110
  sleep(5)
107
111
  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.8
4
+ version: 0.0.9
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-15 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport