Class: Dpl::Providers::Cloudformation::EventStream

Inherits:
Struct
  • Object
show all
Defined in:
lib/dpl/providers/cloudformation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEventStream

Returns a new instance of EventStream.



219
220
221
222
223
# File 'lib/dpl/providers/cloudformation.rb', line 219

def initialize(*)
  super
  @event = describe_stack_events.stack_events.first
  @thread = Thread.new(&method(:process))
end

Instance Attribute Details

#threadObject (readonly)

Returns the value of attribute thread.



217
218
219
# File 'lib/dpl/providers/cloudformation.rb', line 217

def thread
  @thread
end

Instance Method Details

#stopObject



225
226
227
228
# File 'lib/dpl/providers/cloudformation.rb', line 225

def stop
  mutex.synchronize { @stop = true }
  thread.join
end