Class: Awscli::EC2::Placement
- Inherits:
-
Object
- Object
- Awscli::EC2::Placement
- Defined in:
- lib/awscli/ec2.rb
Overview
> Tags
Instance Method Summary collapse
- #create(options) ⇒ Object
- #delete(options) ⇒ Object
-
#initialize(connection) ⇒ Placement
constructor
A new instance of Placement.
- #list ⇒ Object
Constructor Details
#initialize(connection) ⇒ Placement
Returns a new instance of Placement.
601 602 603 |
# File 'lib/awscli/ec2.rb', line 601 def initialize(connection) @conn = connection end |
Instance Method Details
#create(options) ⇒ Object
609 610 611 612 |
# File 'lib/awscli/ec2.rb', line 609 def create() @conn.create_placement_group([:name], [:strategy]) puts "Created a new placement group: #{[:name]}" end |
#delete(options) ⇒ Object
614 615 616 617 |
# File 'lib/awscli/ec2.rb', line 614 def delete() @conn.delete_placement_group([:name]) puts "Deleted placement group: #{[:name]}" end |
#list ⇒ Object
605 606 607 |
# File 'lib/awscli/ec2.rb', line 605 def list @conn.describe_placement_groups end |