Class: AwsCli::CLI::EC2::Ami
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::EC2::Ami
- Defined in:
- lib/awscli/cli/ec2/ami.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
30 31 32 33 |
# File 'lib/awscli/cli/ec2/ami.rb', line 30 def create create_ec2_object @ec2.create_image_from_instance end |
#deregister ⇒ Object
37 38 39 40 |
# File 'lib/awscli/cli/ec2/ami.rb', line 37 def deregister create_ec2_object @ec2.deregister [:image_id] end |
#list ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/awscli/cli/ec2/ami.rb', line 12 def list create_ec2_object if [:amazon_owned] @ec2.list_amazon elsif [:show_filters] @ec2.show_filters elsif [:self_owned] @ec2.list_self else @ec2.list [:filter] end end |