Sha256: db6b0e0253d553a05d3fbe9b1f8594392c334ccb7ce3cc612d7d327e09b94e45
Contents?: true
Size: 493 Bytes
Versions: 3
Compression:
Stored size: 493 Bytes
Contents
module Roark module Aws module Ec2 class AmiTags def initialize(connection) @connection = connection @logger = Roark.logger end def add(args) ami_id = args[:ami_id] tags = args[:tags] tags.each_pair do |key,value| @logger.info "Tagging AMI with '#{key}=#{value}'." @connection.ec2.images[ami_id].tag key, :value => value end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roark-0.2.2 | lib/roark/aws/ec2/ami_tags.rb |
roark-0.2.1 | lib/roark/aws/ec2/ami_tags.rb |
roark-0.2.0 | lib/roark/aws/ec2/ami_tags.rb |