summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ewart <john@unixninjas.org>2014-09-20 20:05:00 -0700
committerJohn Ewart <john@unixninjas.org>2014-09-20 20:05:00 -0700
commitdd8ac66ceb588e21889d8d05574cfb5007b75ea8 (patch)
treeb0c1228f861abce6a6122afd845364624fc625ef
parente7d3e2adf486131cfba78fc4eb7e31d1e36b7b0e (diff)
downloadchef-dd8ac66ceb588e21889d8d05574cfb5007b75ea8.tar.gz
Mixlib shellout expects streams to have a shift operator, so add that to the EventsOutputStream objectshift_events_output_stream
-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