shexecutor 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/shexecutor/version.rb +1 -1
- data/lib/shexecutor.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aad6688b5702d0fe813942cd1749b98d0052550e
|
4
|
+
data.tar.gz: bb27e39942ee31f1676dc14246d62a09a0566efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c69fbb39f9224e05fc0458fc838815a27325af30f17fa25dd0e230e6867f3ccdc0ef54e7052a2ac6b482f99fc259e5fffc92afaa8102c437366dd78936e749e0
|
7
|
+
data.tar.gz: 9343f519a5f804a3b1eeac85f91b85138f75440f78f0fa8710a49379d5ddb30fe098ebe097c99af2a1aa62c34e7c3c5f7aa3e39e55b50bd8d498144162f85bdf
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -111,7 +111,7 @@ puts iut.stderr
|
|
111
111
|
|
112
112
|
###redirecting stdout and stderr
|
113
113
|
```
|
114
|
-
iut = SHExecutor::Executor.new({:wait_for_completion =>
|
114
|
+
iut = SHExecutor::Executor.new({:wait_for_completion => true, :application_path => "/bin/echo", :params => ["this is stdoutin a file"], :stdout_path => "/tmp/mystdout", :stderr_path => "/tmp/mystderr", :append_stdout_path => false, :append_stderr_path => true})
|
115
115
|
iut.execute
|
116
116
|
iut.flush
|
117
117
|
puts iut.stdout
|
data/lib/shexecutor/version.rb
CHANGED
data/lib/shexecutor.rb
CHANGED
@@ -94,6 +94,7 @@ module SHExecutor
|
|
94
94
|
# Warning! This method will block if you are not blocking!
|
95
95
|
# Check status? before calling this to see if the process has completed if you do not want to block
|
96
96
|
def flush
|
97
|
+
return nil if @data_out.nil? or @data_err.nil?
|
97
98
|
#store output for inspection
|
98
99
|
stdout_data = @data_out.string
|
99
100
|
stderr_data = @data_err.string
|