Class: AwsEc2::Ami

Inherits:
Base
  • Object
show all
Defined in:
lib/aws_ec2/ami.rb

Constant Summary

Constants inherited from Base

Base::BUILD_ROOT, Base::SCRIPTS_INFO_PATH

Instance Method Summary collapse

Methods inherited from Base

#derandomize, #initialize, #randomize

Constructor Details

This class inherits a constructor from AwsEc2::Base

Instance Method Details

#runObject



3
4
5
6
7
8
# File 'lib/aws_ec2/ami.rb', line 3

def run
  # Delegates to the Create command.
  # So we just have to set up the option for it.
  @options[:ami_name] = @name
  Create.new(@options).run
end