diff options
author | Max Lincoln <max@devopsy.com> | 2014-07-17 13:00:39 -0400 |
---|---|---|
committer | Max Lincoln <max@devopsy.com> | 2014-07-17 13:12:42 -0400 |
commit | ef704af76fa6d2512782824c7c3ba52a9deac3ab (patch) | |
tree | 6dcd987d970cf6521ba64bbc6ced950cd6966163 /lib/mixlib/shellout/unix.rb | |
parent | 5ce6ead83be1a46241db53e401f44c9a40f598ce (diff) | |
download | mixlib-shellout-ef704af76fa6d2512782824c7c3ba52a9deac3ab.tar.gz |
Simplify live_stream vs live_stdout vs live_stderr based on PR comments
Diffstat (limited to 'lib/mixlib/shellout/unix.rb')
-rw-r--r-- | lib/mixlib/shellout/unix.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb index 249c3d4..be2e66a 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -278,7 +278,7 @@ module Mixlib def read_stdout_to_buffer while chunk = child_stdout.read_nonblock(READ_SIZE) @stdout << chunk - @live_stream << chunk if @live_stream + @live_stdout << chunk if @live_stdout end rescue Errno::EAGAIN rescue EOFError @@ -288,7 +288,7 @@ module Mixlib def read_stderr_to_buffer while chunk = child_stderr.read_nonblock(READ_SIZE) @stderr << chunk - live_stderr_stream << chunk if live_stderr_stream + @live_stderr << chunk if @live_stderr end rescue Errno::EAGAIN rescue EOFError |