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.



212
213
214
215
216
# File 'lib/dpl/providers/cloudformation.rb', line 212

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.



210
211
212
# File 'lib/dpl/providers/cloudformation.rb', line 210

def thread
  @thread
end

Instance Method Details

#stopObject



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

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