subcontractor 0.4.0 → 0.4.1
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.
- data/README.md +1 -1
- data/lib/subcontractor/cli.rb +1 -1
- data/lib/subcontractor/version.rb +1 -1
- metadata +6 -8
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ The gem provides an executable called ```subcontract``` that you will use from y
|
|
|
20
20
|
|
|
21
21
|
```
|
|
22
22
|
USAGE: subcontract [options] -- executable
|
|
23
|
-
-r, --rvm RVM run in a specific RVM
|
|
23
|
+
-r, --rvm RVM run in a specific RVM (use `.` for ruby from `PATH`)
|
|
24
24
|
-d, --chdir PATH chdir to PATH before starting process
|
|
25
25
|
-s, --signal SIGNAL signal to send to process to kill it, default TERM
|
|
26
26
|
```
|
data/lib/subcontractor/cli.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Subcontractor
|
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def find_child_pids(pids)
|
|
39
|
-
lines = `ps axo pid,ppid
|
|
39
|
+
lines = `ps axo pid,ppid`.lines
|
|
40
40
|
child_pids = lines.map(&:split).select do |(child_pid, parent_pid)|
|
|
41
41
|
pids.include?(parent_pid.to_i)
|
|
42
42
|
end.map(&:first).map(&:to_i)
|
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:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 13
|
|
5
|
+
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Tony Pitluga
|
|
@@ -15,8 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-
|
|
19
|
-
default_executable:
|
|
18
|
+
date: 2012-09-19 00:00:00 Z
|
|
20
19
|
dependencies: []
|
|
21
20
|
|
|
22
21
|
description: rvm aware process launcher for foreman
|
|
@@ -47,7 +46,6 @@ files:
|
|
|
47
46
|
- lib/subcontractor/cli.rb
|
|
48
47
|
- lib/subcontractor/version.rb
|
|
49
48
|
- subcontractor.gemspec
|
|
50
|
-
has_rdoc: true
|
|
51
49
|
homepage: https://github.com/pitluga/subcontractor
|
|
52
50
|
licenses: []
|
|
53
51
|
|
|
@@ -77,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
77
75
|
requirements: []
|
|
78
76
|
|
|
79
77
|
rubyforge_project: subcontractor
|
|
80
|
-
rubygems_version: 1.
|
|
78
|
+
rubygems_version: 1.8.24
|
|
81
79
|
signing_key:
|
|
82
80
|
specification_version: 3
|
|
83
81
|
summary: rvm aware process launcher for foreman
|