Class: Roark::Aws::Ec2::AmiTags
- Inherits:
-
Object
- Object
- Roark::Aws::Ec2::AmiTags
- Defined in:
- lib/roark/aws/ec2/ami_tags.rb
Instance Method Summary collapse
- #add(args) ⇒ Object
-
#initialize(connection) ⇒ AmiTags
constructor
A new instance of AmiTags.
Constructor Details
Instance Method Details
#add(args) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/roark/aws/ec2/ami_tags.rb', line 10 def add(args) ami_id = args[:ami_id] = args[:tags] .each_pair do |key,value| @logger.info "Tagging AMI with '#{key}=#{value}'." @connection.ec2.images[ami_id].tag key, :value => value end end |