Class: AwsCli::CLI::EC2::VPC::RouteTables

Inherits:
Thor
  • Object
show all
Defined in:
lib/awscli/cli/ec2/vpc/route_tables.rb

Instance Method Summary collapse

Instance Method Details

#associate_route_tableObject



55
56
57
58
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 55

def associate_route_table
  create_ec2_object
  @ec2.associate_route_table(options)
end

#createObject



17
18
19
20
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 17

def create
  create_ec2_object
  @ec2.create options
end

#create_routeObject



28
29
30
31
32
33
34
35
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 28

def create_route
  if options[:gateway_id] || options[:instance_id] || options[:net_interface_id]
    create_ec2_object
    @ec2.create_route(options)
  else
    Formatador.display_line("[red]Error: [/]Any one of the following options (--gateway-id, --instance-id, --net-interface-id) is requried")
  end
end

#deleteObject



39
40
41
42
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 39

def delete
  create_ec2_object
  @ec2.delete(options)
end

#delete_routeObject



47
48
49
50
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 47

def delete_route
  create_ec2_object
  @ec2.delete_route(options)
end

#disassociate_route_tableObject



62
63
64
65
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 62

def disassociate_route_table
  create_ec2_object
  @ec2.disassociate_route_table(options)
end

#listObject



10
11
12
13
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 10

def list
  create_ec2_object
  @ec2.list options
end