Class: Moonshot::Tools::ASGRolloutConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/moonshot/tools/asg_rollout_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeASGRolloutConfig

Returns a new instance of ASGRolloutConfig.



9
10
11
12
13
14
15
16
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 9

def initialize
  @instance_health_delay = 2
  @terminate_when_delay = 1
  @terminate_when_timeout = 300
  @terminate = proc do |h|
    h.ec2_instance.terminate
  end
end

Instance Attribute Details

#instance_health_delayObject

Returns the value of attribute instance_health_delay.



7
8
9
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 7

def instance_health_delay
  @instance_health_delay
end

#pre_detachObject

Returns the value of attribute pre_detach.



6
7
8
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 6

def pre_detach
  @pre_detach
end

#terminateObject

Returns the value of attribute terminate.



6
7
8
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 6

def terminate
  @terminate
end

#terminate_whenObject

Returns the value of attribute terminate_when.



6
7
8
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 6

def terminate_when
  @terminate_when
end

#terminate_when_delayObject

Returns the value of attribute terminate_when_delay.



7
8
9
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 7

def terminate_when_delay
  @terminate_when_delay
end

#terminate_when_timeoutObject

Returns the value of attribute terminate_when_timeout.



6
7
8
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 6

def terminate_when_timeout
  @terminate_when_timeout
end