class ZAWS::External::AWSCLI::Commands::EC2::DisassociateRouteTable

Public Class Methods

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

Public Instance Methods

association_id(id) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/disassociate_route_table.rb, line 25
def association_id(id)
  @association_id=id
  self
end
aws() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/disassociate_route_table.rb, line 14
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/disassociate_route_table.rb, line 19
def clear_settings
  @association_id=nil
  @aws=nil
  self
end
get_command() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/disassociate_route_table.rb, line 30
def get_command
  command = "ec2 disassociate-route-table"
  command = "#{command} --association-id #{@association_id}" if @association_id
  return command
end