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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c90615e32be8148e01050f014d0bf7e107b403ad
4
- data.tar.gz: 55607d1521893564995bea9da74153b084bd92ec
3
+ metadata.gz: aad6688b5702d0fe813942cd1749b98d0052550e
4
+ data.tar.gz: bb27e39942ee31f1676dc14246d62a09a0566efb
5
5
  SHA512:
6
- metadata.gz: 54788b1980134c365b3b4c8cfb20c0d73ad74b3283e398f86e2b24662c57fcc382978dec80dfe10f463cf730ab7bab1244475dd1a32c609988a70ed888204b9d
7
- data.tar.gz: becd1258cd4c5c1a526f180a419503430d5549c4064df9078300ba102d4100fb9229df812b6ca5b79787ec4d94894d00eea7ff993ed7bbd6073de8474f991af9
6
+ metadata.gz: c69fbb39f9224e05fc0458fc838815a27325af30f17fa25dd0e230e6867f3ccdc0ef54e7052a2ac6b482f99fc259e5fffc92afaa8102c437366dd78936e749e0
7
+ data.tar.gz: 9343f519a5f804a3b1eeac85f91b85138f75440f78f0fa8710a49379d5ddb30fe098ebe097c99af2a1aa62c34e7c3c5f7aa3e39e55b50bd8d498144162f85bdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shexecutor (0.0.7)
4
+ shexecutor (0.0.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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 => false, :application_path => "/bin/sleep", :params => ["1"], :stdout_path => "/tmp/mystdout", :stderr_path => "/tmp/mystderr", :append_stdout_path => false, :append_stderr_path => true})
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
@@ -1,3 +1,3 @@
1
1
  module SHExecutor
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shexecutor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernst van Graan