Sha256: 1ebfe5ed8ee35802b187d9cc694d3b7bd7cccb89faeb7df0275b1a803cde627c

Contents?: true

Size: 737 Bytes

Versions: 72

Compression:

Stored size: 737 Bytes

Contents

class Chef
  module EventDispatch
    class EventsOutputStream
      # 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.

      def initialize(events, options = {})
        @events = events
        @options = options
        events.stream_opened(self, options)
      end

      attr_reader :options
      attr_reader :events

      def print(str)
        events.stream_output(self, str, options)
      end

      def close
        events.stream_closed(self, options)
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
chef-12.5.1-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.5.1 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.3-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.3 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.2-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.2 lib/chef/event_dispatch/events_output_stream.rb
chef-12.5.0.alpha.1 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.1-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.1 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0.rc.2 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0.rc.2-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0.rc.0 lib/chef/event_dispatch/events_output_stream.rb
chef-12.4.0.rc.0-universal-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-11.18.12-x86-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-11.18.12 lib/chef/event_dispatch/events_output_stream.rb
chef-12.3.0-x86-mingw32 lib/chef/event_dispatch/events_output_stream.rb
chef-12.3.0 lib/chef/event_dispatch/events_output_stream.rb
chef-12.3.0.rc.0-x86-mingw32 lib/chef/event_dispatch/events_output_stream.rb