Sha256: d799c64d37b39540f27c4d80762675ecfe6bd71684429b7084f77a2b47336c96

Contents?: true

Size: 364 Bytes

Versions: 6

Compression:

Stored size: 364 Bytes

Contents

class Lono::Cfn::Plan::Changeset
  class Tags < Base
    def changes
      old = simplify(stack.tags)
      new = simplify(@change_set.tags)
      diff = Lono::Cfn::Plan::Diff::Data.new(old, new)
      diff.show("Tag Changes:")
    end

    def simplify(tags)
      tags.inject({}) do |result, i|
        result.merge(i.key => i.value)
      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/plan/changeset/tags.rb
lono-8.0.0.pre.rc5 lib/lono/cfn/plan/changeset/tags.rb
lono-8.0.0.pre.rc4 lib/lono/cfn/plan/changeset/tags.rb
lono-8.0.0.pre.rc3 lib/lono/cfn/plan/changeset/tags.rb
lono-8.0.0.pre.rc2 lib/lono/cfn/plan/changeset/tags.rb
lono-8.0.0.pre.rc1 lib/lono/cfn/plan/changeset/tags.rb