Sha256: 08c7e237e323f3ff0d366e2a00da4dab875037e6db4b3ee386588255605e468e

Contents?: true

Size: 296 Bytes

Versions: 3

Compression:

Stored size: 296 Bytes

Contents

require 'aws-sdk'

module Tagenv
  module Ec2
    class TagUtil
      def self.convert_tag_hash(prefix, tags)
        result = {}
        tags.each {|hash|
          result[prefix + (hash['key'] || hash[:key])] = hash['value'] || hash[:value]
        }
        result
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagenv-0.1.7 lib/tagenv/ec2/tag_util.rb
tagenv-0.1.6 lib/tagenv/ec2/tag_util.rb
tagenv-0.1.5 lib/tagenv/ec2/tag_util.rb