Class: Aptible::Api::AwsInstance

Inherits:
Resource
  • Object
show all
Defined in:
lib/aptible/api/aws_instance.rb

Instance Method Summary collapse

Methods inherited from Resource

#namespace, #root_url

Instance Method Details

#layersObject

Layers as an array of strings



38
39
40
# File 'lib/aptible/api/aws_instance.rb', line 38

def layers
  stack_layers.map(&:name)
end

#stack_layersObject



30
31
32
33
34
35
# File 'lib/aptible/api/aws_instance.rb', line 30

def stack_layers
  instance_layer_memberships.map(&:links)
                            .map(&:stack_layer)
                            .uniq(&:href)
                            .map(&:get)
end