Sha256: da93d6753c1a3546078fd727d0b957c2cecab0fe9dbf72a0e7e44be00186ddb1

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

require 'aws-sdk'

module Tagenv
  module Ec2
    class TagUtil
      def self.convert_tag_hash(tags)
        result = {}
        tags.each {|hash|
          result[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.4 lib/tagenv/ec2/tag_util.rb
tagenv-0.1.3 lib/tagenv/ec2/tag_util.rb
tagenv-0.1.2 lib/tagenv/ec2/tag_util.rb