class Tagenv::Ec2::TagUtil

Public Class Methods

convert_tag_hash(prefix, tags) click to toggle source
# File lib/tagenv/ec2/tag_util.rb, line 6
def self.convert_tag_hash(prefix, tags)
  result = {}
  tags.each {|hash|
    result[prefix + (hash['key'] || hash[:key])] = hash['value'] || hash[:value]
  }
  result
end