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.



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

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.



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

def instance_health_delay
  @instance_health_delay
end

#pre_detachObject

Returns the value of attribute pre_detach.



4
5
6
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 4

def pre_detach
  @pre_detach
end

#terminateObject

Returns the value of attribute terminate.



4
5
6
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 4

def terminate
  @terminate
end

#terminate_whenObject

Returns the value of attribute terminate_when.



4
5
6
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 4

def terminate_when
  @terminate_when
end

#terminate_when_delayObject

Returns the value of attribute terminate_when_delay.



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

def terminate_when_delay
  @terminate_when_delay
end

#terminate_when_timeoutObject

Returns the value of attribute terminate_when_timeout.



4
5
6
# File 'lib/moonshot/tools/asg_rollout_config.rb', line 4

def terminate_when_timeout
  @terminate_when_timeout
end