Class: Moonshot::Tools::ASGRolloutConfig
- Inherits:
-
Object
- Object
- Moonshot::Tools::ASGRolloutConfig
- Defined in:
- lib/moonshot/tools/asg_rollout_config.rb
Instance Attribute Summary collapse
-
#instance_health_delay ⇒ Object
Returns the value of attribute instance_health_delay.
-
#pre_detach ⇒ Object
Returns the value of attribute pre_detach.
-
#terminate ⇒ Object
Returns the value of attribute terminate.
-
#terminate_when ⇒ Object
Returns the value of attribute terminate_when.
-
#terminate_when_delay ⇒ Object
Returns the value of attribute terminate_when_delay.
-
#terminate_when_timeout ⇒ Object
Returns the value of attribute terminate_when_timeout.
Instance Method Summary collapse
-
#initialize ⇒ ASGRolloutConfig
constructor
A new instance of ASGRolloutConfig.
Constructor Details
#initialize ⇒ ASGRolloutConfig
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_delay ⇒ Object
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_detach ⇒ Object
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 |
#terminate ⇒ Object
Returns the value of attribute terminate.
6 7 8 |
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 6 def terminate @terminate end |
#terminate_when ⇒ Object
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_delay ⇒ Object
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_timeout ⇒ Object
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 |