Class: Bosh::Director::Api::InstanceIgnoreManager

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/api/instance_ignore_manager.rb

Instance Method Summary collapse

Instance Method Details

#set_ignore_state_for_instance(deployment, instance_group_name, instance_group_id, state) ⇒ Object



4
5
6
7
8
# File 'lib/bosh/director/api/instance_ignore_manager.rb', line 4

def set_ignore_state_for_instance(deployment, instance_group_name, instance_group_id, state)
  instance = InstanceLookup.new.by_uuid(deployment, instance_group_name, instance_group_id)
  instance.ignore = state
  instance.save
end