class ZAWS::External::AWSCLI::Commands::EC2::DeleteRouteTable
Public Class Methods
new(shellout=nil, awscli=nil)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 7 def initialize(shellout=nil, awscli=nil) @shellout=shellout @awscli=awscli clear_settings self end
Public Instance Methods
aws()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 35 def aws @aws ||= ZAWS::External::AWSCLI::Commands::AWS.new(self) @aws end
clear_settings()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 14 def clear_settings() @route_table_id=nil self end
execute(verbose)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 30 def execute(verbose) comline=@aws.get_command @shellout.cli(comline, verbose) end
get_command()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 24 def get_command command = "ec2 delete-route-table" command = "#{command} --route-table-id #{@route_table_id}" if @route_table_id return command end
route_table_id(id)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/delete_route_table.rb, line 19 def route_table_id(id) @route_table_id=id self end