Class: AwsCli::CLI::EC2::ReservedInstances
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::EC2::ReservedInstances
- Defined in:
- lib/awscli/cli/ec2/reservedinstmng.rb
Instance Method Summary collapse
Instance Method Details
#list ⇒ Object
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 [:offerings] @ec2.list_offerings [:filters] elsif [:list_filters] @ec2.list_filters else @ec2.list [:filters] end end |
#purchase ⇒ Object
26 27 28 29 |
# File 'lib/awscli/cli/ec2/reservedinstmng.rb', line 26 def purchase create_ec2_object @ec2.purchase end |