Class: AwsCli::CLI::EC2::SpotInstancesManagement

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

Instance Method Summary collapse

Instance Method Details

#cancelObject



64
65
# File 'lib/awscli/cli/ec2/spot.rb', line 64

def cancel
end

#createObject



58
59
60
61
# File 'lib/awscli/cli/ec2/spot.rb', line 58

def create
  create_ec2_object
  @ec2.request_spot_instances options
end

#create_spot_datafeedObject



28
29
30
31
# File 'lib/awscli/cli/ec2/spot.rb', line 28

def create_spot_datafeed
  create_ec2_object
  @ec2.create_spot_datafeed_subsription options[:bucket], options[:prefix]
end

#delete_spot_datafeedObject



34
35
36
37
# File 'lib/awscli/cli/ec2/spot.rb', line 34

def delete_spot_datafeed
  create_ec2_object
  @ec2.delete_spot_datafeed_subsription
end

#listObject



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

def list
  create_ec2_object
  if options[:describe_spot_datafeed_subscription]
    @ec2.describe_spot_datafeed_subscription
  elsif options[:price_history]
    @ec2.describe_spot_price_history options[:filters]
  elsif options[:list_filters]
    @ec2.list_filters
  else
    @ec2.describe_spot_requests
  end
end