Sha256: 8e0ed0f208e80374d389a268a0f09eba4d8d045245058044aaf4215fe8e5076a

Contents?: true

Size: 407 Bytes

Versions: 6

Compression:

Stored size: 407 Bytes

Contents

class Lono::Cfn::Deploy
  class Tags < Base
    # Maps to CloudFormation format.  Example:
    #
    #   {"a"=>"1", "b"=>"2"}
    # To
    #   [{key: "a", value: "1"}, {key: "b", value: "2"}]
    #
    def values
      tags = Lono.config.up.tags
      return if tags.nil? # nil = keep current tags. [] = remove all tags

      tags.map do |k,v|
        { key: k.to_s, value: v }
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/cfn/deploy/tags.rb
lono-8.0.0.pre.rc5 lib/lono/cfn/deploy/tags.rb
lono-8.0.0.pre.rc4 lib/lono/cfn/deploy/tags.rb
lono-8.0.0.pre.rc3 lib/lono/cfn/deploy/tags.rb
lono-8.0.0.pre.rc2 lib/lono/cfn/deploy/tags.rb
lono-8.0.0.pre.rc1 lib/lono/cfn/deploy/tags.rb