Class: AwsCli::CLI::EC2::ReservedInstances

Inherits:
Thor
  • Object
show all
Defined in:
lib/awscli/cli/ec2/reservedinstmng.rb

Instance Method Summary collapse

Instance Method Details

#listObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/awscli/cli/ec2/reservedinstmng.rb', line 12

def list
  create_ec2_object
  if options[:offerings]
    @ec2.list_offerings options[:filters]
  elsif options[:list_filters]
    @ec2.list_filters
  else
    @ec2.list options[:filters]
  end
end

#purchaseObject



26
27
28
29
# File 'lib/awscli/cli/ec2/reservedinstmng.rb', line 26

def purchase
  create_ec2_object
  @ec2.purchase options
end