Class: MKIt::DestroyPodSaga
- Includes:
- DockerHelper
- Defined in:
- lib/mkit/sagas/destroy_pod_saga.rb
Instance Method Summary collapse
-
#do_the(job) ⇒ Object
destroy_pod_saga:.
- #topics ⇒ Object
Methods included from DockerHelper
#attach_network, #clear_logs, #create_instance, #create_network, #create_volume, #delete_volume, #dettach_network, #execute_local, #inspect_instance, #inspect_volume, #logfile, #logs, #network_exists?, #remove_instance, #remove_network, #start_instance, #stop_instance, #to_docker_cpu_limit
Methods inherited from ASaga
Constructor Details
This class inherits a constructor from MKIt::ASaga
Instance Method Details
#do_the(job) ⇒ Object
destroy_pod_saga:
payload:
* pod_name
* pod.id
triggers
* pod_destroyed?
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/mkit/sagas/destroy_pod_saga.rb', line 21 def do_the(job) MKItLogger.info("#{self.class} <#{job.topic}> #{job.inspect}....") begin remove_instance(job.data['pod_name']) rescue => e MKItLogger.warn(e) end end |
#topics ⇒ Object
7 8 9 |
# File 'lib/mkit/sagas/destroy_pod_saga.rb', line 7 def topics %w{destroy_pod_saga} end |