Class: Bosh::Director::Api::ResurrectorManager
- Defined in:
- lib/bosh/director/api/resurrector_manager.rb
Instance Method Summary collapse
- #set_pause_for_all(desired_state) ⇒ Object
- #set_pause_for_instance(deployment_name, job_name, job_index, desired_state) ⇒ Object
Instance Method Details
#set_pause_for_all(desired_state) ⇒ Object
10 11 12 |
# File 'lib/bosh/director/api/resurrector_manager.rb', line 10 def set_pause_for_all(desired_state) Models::Instance.update(resurrection_paused: desired_state) end |
#set_pause_for_instance(deployment_name, job_name, job_index, desired_state) ⇒ Object
4 5 6 7 8 |
# File 'lib/bosh/director/api/resurrector_manager.rb', line 4 def set_pause_for_instance(deployment_name, job_name, job_index, desired_state) instance = InstanceLookup.new.by_attributes(deployment_name, job_name, job_index) instance.resurrection_paused = desired_state instance.save end |