Class: Dpl::Providers::Cloudformation::EventStream
- Inherits:
-
Struct
- Object
- Struct
- Dpl::Providers::Cloudformation::EventStream
- Defined in:
- lib/dpl/providers/cloudformation.rb
Instance Attribute Summary collapse
-
#thread ⇒ Object
readonly
Returns the value of attribute thread.
Instance Method Summary collapse
-
#initialize ⇒ EventStream
constructor
A new instance of EventStream.
- #stop ⇒ Object
Constructor Details
#initialize ⇒ EventStream
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
#thread ⇒ Object (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
#stop ⇒ Object
225 226 227 228 |
# File 'lib/dpl/providers/cloudformation.rb', line 225 def stop mutex.synchronize { @stop = true } thread.join end |