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
38 39 40 |
# File 'lib/aptible/api/aws_instance.rb', line 38 def layers stack_layers.map(&:name) end |
#stack_layers ⇒ Object
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 |