process_runner 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/process_runner/version.rb +1 -1
- data/lib/process_runner.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a322083cd53f5b5825714dcc14a3c4c978a737e5
|
4
|
+
data.tar.gz: aadc7a195b0a8b0b166f4747f77f06e4d5c7d30a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0eccb4ef39f3549be33a2a964291531065471d0c3c9d6a22b964faaff6cb6b335409088dddc3e9ad1967f4478cac82d11cb3dfa7d7f2712b5d45b26226703b4a
|
7
|
+
data.tar.gz: e14939fa42bba8235a33429b730c45e483afd1ad070ad80e88aff338ef87fc4d4c5a243aa418234efac449033f63753dfdc890bd6b61652a10aa4fa4e2c5c8ae
|
data/lib/process_runner.rb
CHANGED
@@ -11,6 +11,8 @@ module ProcessRunner
|
|
11
11
|
def self.go(command, options={})
|
12
12
|
dirname = File.dirname(command.first)
|
13
13
|
options.merge!(:chdir => dirname) if options[:chdir].nil? && dirname && !dirname.empty?
|
14
|
-
Process.
|
14
|
+
pid = Process.spawn(command.join(' '), options)
|
15
|
+
Process.detach(pid)
|
16
|
+
pid
|
15
17
|
end
|
16
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: process_runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dustin Morrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|