From 8525785c115ba51995b805bed29647956d1f3391 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Wed, 17 Dec 2014 19:09:00 -0800 Subject: Fix live_stream for windows The windows module was looking to write stdout to live_stream instead of live_stdout. --- Gemfile | 3 +++ lib/mixlib/shellout/windows.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 86160d0..708421e 100644 --- a/Gemfile +++ b/Gemfile @@ -9,3 +9,6 @@ group(:test) do end +group(:development) do + gem 'pry' +end diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb index 137aaa9..1bc8b13 100644 --- a/lib/mixlib/shellout/windows.rb +++ b/lib/mixlib/shellout/windows.rb @@ -156,7 +156,7 @@ module Mixlib begin next_chunk = stdout_read.readpartial(READ_SIZE) @stdout << next_chunk - @live_stream << next_chunk if @live_stream + @live_stdout << next_chunk if @live_stdout rescue EOFError stdout_read.close open_streams.delete(stdout_read) -- cgit v1.2.1