Class: Ruboty::Docker::Actions::Events
- Defined in:
- lib/ruboty/docker/actions/events.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ruboty::Docker::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ruboty/docker/actions/events.rb', line 5 def call ::Thread.new { ::Docker::Event.stream do |event| response = ['docker event response', event.status, event.id, event.from, event.time].join("\s") .reply response end } .reply('Start real time events stream watch thread') rescue => e value = [e.class.name, e., e.backtrace].join("\n") .reply value ensure end |