Class: Awscli::EC2::Placement

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

Overview

> Tags

Instance Method Summary collapse

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(options)
  @conn.create_placement_group(options[:name], options[:strategy])
  puts "Created a new placement group: #{options[:name]}"
end

#delete(options) ⇒ Object



614
615
616
617
# File 'lib/awscli/ec2.rb', line 614

def delete(options)
  @conn.delete_placement_group(options[:name])
  puts "Deleted placement group: #{options[:name]}"
end

#listObject



605
606
607
# File 'lib/awscli/ec2.rb', line 605

def list
  @conn.describe_placement_groups
end