diff options
-rw-r--r-- | lib/mixlib/shellout/windows.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb index b9d24bb..094e9b3 100644 --- a/lib/mixlib/shellout/windows.rb +++ b/lib/mixlib/shellout/windows.rb @@ -146,8 +146,6 @@ module Mixlib end end - private - class ThingThatLooksSortOfLikeAProcessStatus attr_accessor :exitstatus def success? @@ -155,6 +153,8 @@ module Mixlib end end + private + def consume_output(open_streams, stdout_read, stderr_read) return false if open_streams.length == 0 ready = IO.select(open_streams, nil, nil, READ_WAIT_TIME) @@ -240,7 +240,7 @@ module Mixlib end environment.each_pair do |k, v| - if v == nil + if v.nil? result.delete(k) else result[k] = v @@ -249,8 +249,6 @@ module Mixlib result end - private - # api: semi-private # If there are special characters parsable by cmd.exe (such as file redirection), then # this method should return true. |