class Chef::EventDispatch::EventsOutputStream
Attributes
events[R]
options[R]
Public Class Methods
new(events, options = {})
click to toggle source
This is a fake stream that connects to events.
Arguments¶ ↑
events: the EventDispatch object to send data to (run_context.events) options is a hash with these possible options:
-
name: a string that identifies the stream to the user. Preferably short.
# File lib/chef/event_dispatch/events_output_stream.rb, line 11 def initialize(events, options = {}) @events = events @options = options events.stream_opened(self, options) end
Public Instance Methods
<<(str)
click to toggle source
# File lib/chef/event_dispatch/events_output_stream.rb, line 24 def <<(str) events.stream_output(self, str, options) end
close()
click to toggle source
# File lib/chef/event_dispatch/events_output_stream.rb, line 32 def close events.stream_closed(self, options) end
print(str)
click to toggle source
# File lib/chef/event_dispatch/events_output_stream.rb, line 20 def print(str) events.stream_output(self, str, options) end
write(str)
click to toggle source
# File lib/chef/event_dispatch/events_output_stream.rb, line 28 def write(str) events.stream_output(self, str, options) end