summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/event_dispatch/events_output_stream.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/event_dispatch/events_output_stream.rb b/lib/chef/event_dispatch/events_output_stream.rb
index 8de9b0fed1..46a1e066c4 100644
--- a/lib/chef/event_dispatch/events_output_stream.rb
+++ b/lib/chef/event_dispatch/events_output_stream.rb
@@ -21,6 +21,11 @@ class Chef
events.stream_output(self, str, options)
end
+ # Mixlib shellout expects streams to have a shift operator
+ def <<(str)
+ print(str)
+ end
+
def close
events.stream_closed(self, options)
end