Class: AwsCli::CLI::EC2::SpotInstancesManagement
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::EC2::SpotInstancesManagement
- Defined in:
- lib/awscli/cli/ec2/spot.rb
Instance Method Summary collapse
- #cancel ⇒ Object
- #create ⇒ Object
- #create_spot_datafeed ⇒ Object
- #delete_spot_datafeed ⇒ Object
- #list ⇒ Object
Instance Method Details
#cancel ⇒ Object
64 65 |
# File 'lib/awscli/cli/ec2/spot.rb', line 64 def cancel end |
#create ⇒ Object
58 59 60 61 |
# File 'lib/awscli/cli/ec2/spot.rb', line 58 def create create_ec2_object @ec2.request_spot_instances end |
#create_spot_datafeed ⇒ Object
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 [:bucket], [:prefix] end |
#delete_spot_datafeed ⇒ Object
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 |
#list ⇒ Object
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 [:describe_spot_datafeed_subscription] @ec2.describe_spot_datafeed_subscription elsif [:price_history] @ec2.describe_spot_price_history [:filters] elsif [:list_filters] @ec2.list_filters else @ec2.describe_spot_requests end end |