Method: ZAWS::External::AWSCLI::Commands::ELB::CreateLoadBalancer#get_command

Defined in:
lib/zaws/external/awscli/commands/elb/create_load_balancer.rb

#get_commandObject



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/zaws/external/awscli/commands/elb/create_load_balancer.rb', line 45

def get_command
  command = "elb create-load-balancer"
  command = "#{command} --load-balancer-name #{@lbname}" if @lbname
  command = "#{command} --listeners '[#{@listeners_array[0]["Listener"].to_json}]'" if @listeners_array
  if @subnet_array
    command = "#{command} --subnets #{@subnet_array.join(" ")}"
  end
  if @security_groups
    command = "#{command} --security-groups #{@security_groups.join(" ")}"
  end
  return command
end