Method: Hsp::Orchestrator::Docker#dispatch
- Defined in:
- lib/hsp/orchestrator/docker.rb
#dispatch(event) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/hsp/orchestrator/docker.rb', line 15 def dispatch(event) case event.dig('message', 'resource_type') when 'instance' dispatch_instance(event) else puts "Unsupported event type '#{event.dig('resource_type')}' received! It will be ignored." end end |