Class: Marty::Diagnostic::Aws::Ec2Instance

Inherits:
Aws::Request
  • Object
show all
Defined in:
lib/marty/diagnostic/aws/ec2_instance.rb

Defined Under Namespace

Classes: InstancesSet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEc2Instance

Returns a new instance of Ec2Instance.



26
27
28
29
30
31
32
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 26

def initialize
  super
  @service   = 'ec2'
  @tag       = get_tag
  @instances = InstancesSet.new(get_instances)
  @nodes     = get_private_ips
end

Instance Attribute Details

#instancesObject (readonly)

Returns the value of attribute instances.



2
3
4
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2

def instances
  @instances
end

#nodesObject (readonly)

Returns the value of attribute nodes.



2
3
4
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2

def nodes
  @nodes
end

#tagObject (readonly)

Returns the value of attribute tag.



2
3
4
# File 'lib/marty/diagnostic/aws/ec2_instance.rb', line 2

def tag
  @tag
end