class ZAWS::External::AWSCLI::Commands::EC2::EnableVgwRoutePropagation

Public Class Methods

new(shellout=nil, awscli=nil) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/enable_vgw_route_propagation.rb, line 8
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/enable_vgw_route_propagation.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/enable_vgw_route_propagation.rb, line 19
def clear_settings
  @aws=nil
  @route_table_id=nil
  @dest_cidr_block=nil
  @instance_id=nil
end
gateway_id(id) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/enable_vgw_route_propagation.rb, line 31
def gateway_id(id)
  @gateway_id=id
  self
end
get_command() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/enable_vgw_route_propagation.rb, line 36
def get_command
  command = "ec2 enable-vgw-route-propagation"
  command = "#{command} --route-table-id #{@route_table_id}" if @route_table_id
  command = "#{command} --gateway-id #{@gateway_id}" if @gateway_id
  return command
end
route_table_id(id) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/enable_vgw_route_propagation.rb, line 26
def route_table_id(id)
  @route_table_id=id
  self
end