Class: Aptible::Api::AwsInstance
- Defined in:
- lib/aptible/api/aws_instance.rb
Instance Method Summary collapse
-
#layers ⇒ Object
Layers as an array of strings.
- #stack_layers ⇒ Object
Methods inherited from Resource
Instance Method Details
#layers ⇒ Object
Layers as an array of strings
27 28 29 |
# File 'lib/aptible/api/aws_instance.rb', line 27 def layers stack_layers.map(&:name) end |
#stack_layers ⇒ Object
19 20 21 22 23 24 |
# File 'lib/aptible/api/aws_instance.rb', line 19 def stack_layers instance_layer_memberships.map(&:links) .map(&:stack_layer) .uniq(&:href) .map(&:get) end |