lib/elb/right_elb_interface.rb
# Add new instance(s) to the load balancer.
# Returns an updated list of instances for the load balancer.
#
#  elb.register_instances_with_load_balancer('test-kd1', 'i-8b8bcbe2', 'i-bf8bcbd6') #=> ["i-8b8bcbe2", "i-bf8bcbd6"]
#
Add new instance(s) to the load balancer.
Returns an updated list of instances for the load balancer.


Add new instance ( s ) to the load balancer . Returns an updated list of instances for the load balancer .
def register_instances_with_load_balancer(load_balancer_name, *instances)
      instances.flatten!
      request_hash = amazonize_list("Instances.member.?.InstanceId", instances)
      request_hash.merge!( 'LoadBalancerName' => load_balancer_name )
      link = generate_request("RegisterInstancesWithLoadBalancer", request_hash)
      request_info(link, InstancesWithLoadBalancerParser.new(:logger => @logger))
    end
def register_instances_with_load_balancer ( load_balancer_name , * instances ) instances . flatten! request_hash = amazonize_list ( "Instances.member.?.InstanceId" , instances ) request_hash . merge! ( 'LoadBalancerName' => load_balancer_name ) link = generate_request ( "RegisterInstancesWithLoadBalancer" , request_hash ) request_info ( link , InstancesWithLoadBalancerParser . new ( :logger => @logger ) ) end
Add new instance(s) to the load balancer.
Add new instance ( s ) to the load balancer .
load_balancer_name
<not_specific>
instances
<not_specific>