diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-01-27 14:10:00 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2017-01-27 14:10:00 -0800 |
commit | a35b6208912146ecad685234111729efd19d3fca (patch) | |
tree | 9dcfb4a0d095976b4ded5272fd951fee0dc982e3 | |
parent | 5219b056a1bfdb4c1240a980ef2a74f0b754631b (diff) | |
download | mixlib-shellout-a35b6208912146ecad685234111729efd19d3fca.tar.gz |
fix chefstyle
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-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. |