class AwsCli::CLI::EC2::SpotInstancesManagement
Public Instance Methods
cancel()
click to toggle source
# File lib/awscli/cli/ec2/spot.rb, line 64 def cancel end
create()
click to toggle source
# File lib/awscli/cli/ec2/spot.rb, line 58 def create create_ec2_object @ec2.request_spot_instances options end
create_spot_datafeed()
click to toggle source
# 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_datafeed()
click to toggle source
# File lib/awscli/cli/ec2/spot.rb, line 34 def delete_spot_datafeed create_ec2_object @ec2.delete_spot_datafeed_subsription end
list()
click to toggle source
# 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
Private Instance Methods
create_ec2_object()
click to toggle source
# File lib/awscli/cli/ec2/spot.rb, line 69 def create_ec2_object puts "ec2 Establishing Connetion..." $ec2_conn = if parent_options[:region] Awscli::Connection.new.request_ec2(parent_options[:region]) else Awscli::Connection.new.request_ec2 end puts "ec2 Establishing Connetion... OK" @ec2 = Awscli::EC2::Spot.new($ec2_conn) end