Class: Moonshot::Tools::ASGRollout::ASGInstance

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

Overview

Provides an abstraction around an Auto Scaling Group’s relationship with an instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asg_name, id, _config) ⇒ ASGInstance

Returns a new instance of ASGInstance.



9
10
11
12
# File 'lib/moonshot/tools/asg_rollout/asg_instance.rb', line 9

def initialize(asg_name, id, _config)
  @asg_name = asg_name
  @instance_id = id
end

Instance Attribute Details

#asg_nameObject (readonly)

Returns the value of attribute asg_name.



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

def asg_name
  @asg_name
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end