subcontractor 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/subcontractor/cli.rb +1 -1
- data/lib/subcontractor/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -13,7 +13,7 @@ gem install subcontractor
|
|
13
13
|
or with bundler
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
gem 'subcontractor', '0.
|
16
|
+
gem 'subcontractor', '0.3.2'
|
17
17
|
```
|
18
18
|
|
19
19
|
The gem provides an executable called ```subcontract``` that you will use from your Procfile. You can see what it does by running ```subcontract --help```
|
data/lib/subcontractor/cli.rb
CHANGED
@@ -34,7 +34,7 @@ module Subcontractor
|
|
34
34
|
|
35
35
|
def find_child_pids(pids)
|
36
36
|
lines = `ps axo pid,ppid`
|
37
|
-
child_pids = lines.
|
37
|
+
child_pids = lines.split("\n").collect{|x| x.split("\s")}.select do |(child_pid, parent_pid)|
|
38
38
|
pids.include?(parent_pid.to_i)
|
39
39
|
end.map(&:first).map(&:to_i)
|
40
40
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subcontractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tony Pitluga
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-27 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: rvm aware process launcher for foreman
|