Class: AwsCli::CLI::EC2::VPC::RouteTables
- Inherits:
-
Thor
- Object
- Thor
- AwsCli::CLI::EC2::VPC::RouteTables
- Defined in:
- lib/awscli/cli/ec2/vpc/route_tables.rb
Instance Method Summary collapse
- #associate_route_table ⇒ Object
- #create ⇒ Object
- #create_route ⇒ Object
- #delete ⇒ Object
- #delete_route ⇒ Object
- #disassociate_route_table ⇒ Object
- #list ⇒ Object
Instance Method Details
#associate_route_table ⇒ Object
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() end |
#create ⇒ Object
17 18 19 20 |
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 17 def create create_ec2_object @ec2.create end |
#create_route ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 28 def create_route if [:gateway_id] || [:instance_id] || [:net_interface_id] create_ec2_object @ec2.create_route() else Formatador.display_line("[red]Error: [/]Any one of the following options (--gateway-id, --instance-id, --net-interface-id) is requried") end end |
#delete ⇒ Object
39 40 41 42 |
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 39 def delete create_ec2_object @ec2.delete() end |
#delete_route ⇒ Object
47 48 49 50 |
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 47 def delete_route create_ec2_object @ec2.delete_route() end |
#disassociate_route_table ⇒ Object
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() end |
#list ⇒ Object
10 11 12 13 |
# File 'lib/awscli/cli/ec2/vpc/route_tables.rb', line 10 def list create_ec2_object @ec2.list end |