Module: Capistrano::Autoscale::AWS::Taggable
Instance Method Summary collapse
Instance Method Details
#tag(key, value) ⇒ Object
7 8 9 10 11 |
# File 'lib/capistrano/autoscale/aws/taggable.rb', line 7 def tag(key, value) @tags ||= {} aws_counterpart. tags: [{ key: key, value: value }] @tags[key] = value end |
#tags ⇒ Object
13 14 15 |
# File 'lib/capistrano/autoscale/aws/taggable.rb', line 13 def @tags ||= aws_counterpart..map { |tag| [tag.key, tag.value] }.to_h end |