Class: Tagenv::Ec2::TagUtil
- Inherits:
-
Object
- Object
- Tagenv::Ec2::TagUtil
- Defined in:
- lib/tagenv/ec2/tag_util.rb
Class Method Summary collapse
Class Method Details
.convert_tag_hash(prefix, tags) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/tagenv/ec2/tag_util.rb', line 6 def self.convert_tag_hash(prefix, ) result = {} .each {|hash| result[prefix + (hash['key'] || hash[:key])] = hash['value'] || hash[:value] } result end |