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



34
35
36
# File 'lib/aptible/api/aws_instance.rb', line 34

def layers
  stack_layers.map(&:name)
end

#stack_layersObject



26
27
28
29
30
31
# File 'lib/aptible/api/aws_instance.rb', line 26

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