process_controller 0.0.4 → 0.0.5

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: fcf60d42ad473b8c30ca4b4d9c7c0e1a6127ced8
4
- data.tar.gz: fc09479889b72da466d700150db87cf2cf2bd4f7
3
+ metadata.gz: 358fe9c6f9b18cb316ab8781a307be61e3fd3fef
4
+ data.tar.gz: 7b17a2b8a39f63cd08907aaa935eb076dd124bef
5
5
  SHA512:
6
- metadata.gz: 1245eb78c7c67eb6a07b63f3151979bd465c431b2de75c5c82b6120dea1193e6bdd4f3afcc9e3b3ed98b8144385765a11e883b566358449936e5304033fd365e
7
- data.tar.gz: dd3667f5e4d47ceaf27f0e69ae83a954e0fe05fe5a08079b6d7f1ca948db35904f04bf3917392e7474291c7c1170d4f6ddf4963a12b8115190d0acdff4dc5126
6
+ metadata.gz: c21710e0f6b249dfed5644d6069df7d48381d509c5cd7d2360c1ca3b08fa0477c719c1470c02f7d7d29a56563515c602cc84b4311d0b2e4bcfc96c31dace146d
7
+ data.tar.gz: 88c8e50537520b7ee670b827fe48180ea93be0dc2a9ea726b54f0523892b0f8cff26e4990b1eeb87d94b4b2214e62da5b4bc67ce8e2e5f930788c20ac7ad4527
data/control.gemspec CHANGED
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  # s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ['lib']
21
21
 
22
+ #TODO maybe replace this. it might be too much just for with_indifferent_access :-)
22
23
  s.add_runtime_dependency 'activesupport', '~> 4.2'
23
24
 
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module Control
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
@@ -66,7 +66,10 @@ module ControlHelper
66
66
  p "trying to start a new using start_command: #{start_command}"
67
67
 
68
68
  pid = spawn(start_command)
69
- Process.detach(pid) if pid
69
+ if pid
70
+ Process.detach(pid)
71
+ p "detached pid #{pid} from the main program"
72
+ end
70
73
  sleep 5 # give the new app enough time to crash
71
74
  find_app_pid(options)
72
75
  end
@@ -35,6 +35,8 @@ class Control_P
35
35
  else
36
36
  raise "action #{action} not implemented"
37
37
  end
38
+ # drom some reason the remote ssh is not exiting, making sure it exit here
39
+ exit(0)
38
40
  end
39
41
 
40
42
  def self.helper
@@ -69,4 +71,5 @@ class Control_P
69
71
  helper.kill_the_process!(options)
70
72
  end
71
73
 
72
- end
74
+ end
75
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ohad partuck