class ZAWS::External::AWSCLI::Commands::EC2::CreateRouteTable

Public Class Methods

new(shellout=nil, awscli=nil) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_route_table.rb, line 7
def initialize(shellout=nil, awscli=nil)
  @shellout=shellout
  @awscli=awscli
  clear_settings
end

Public Instance Methods

aws() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_route_table.rb, line 13
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/create_route_table.rb, line 18
def clear_settings
  @aws=nil
  @vpc_id=nil
end
get_command() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_route_table.rb, line 28
def get_command
  command = "ec2 create-route-table"
  command = "#{command} --vpc-id #{@vpc_id}" if @vpc_id
  return command
end
vpc_id(vpc_id) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_route_table.rb, line 23
def vpc_id(vpc_id)
  @vpc_id=vpc_id
  self
end