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.



11
12
13
14
# File 'lib/moonshot/tools/asg_rollout/asg_instance.rb', line 11

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.



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

def asg_name
  @asg_name
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end