vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/elb/elb_interface.rb
# name: name of load balancer
# instance_ids: array of instance_id's to add to load balancer
name of load balancer
instance_ids: array of instance_id's to add to load balancer
name of load balancer instance_ids : array of instance_id ' s to add to load balancer
def register_instances_with_load_balancer(name, instance_ids)
      params                     = {}
      params['LoadBalancerName'] = name
      i                          = 1
      instance_ids.each do |l|
        params["Instances.member.#{i}.InstanceId"] = "#{l}"
        i                                          += 1
      end
      @logger.info("Registering Instances #{instance_ids.join(',')} with Load Balancer '#{name}'")
      link = generate_request("RegisterInstancesWithLoadBalancer", params)
      resp = request_info(link, QElbRegisterInstancesParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def register_instances_with_load_balancer ( name , instance_ids ) params = { } params [ 'LoadBalancerName' ] = name i = 1 instance_ids . each do | l | params [ "Instances.member.#{i}.InstanceId" ] = "#{l}" i += 1 end @logger . info ( "Registering Instances #{instance_ids.join(',')} with Load Balancer '#{name}'" ) link = generate_request ( "RegisterInstancesWithLoadBalancer" , params ) resp = request_info ( link , QElbRegisterInstancesParser . new ( :logger => @logger ) ) rescue Exception on_exception end
name: name of load balancer
instance_ids: array of instance_id's to add to load balancer
name : name of load balancer instance_ids : array of instance_id ' s to add to load balancer
name
instance_ids