aws 2.1.6 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/elb/right_elb_interface.rb +18 -0
- metadata +2 -2
@@ -134,6 +134,24 @@ module Aws
|
|
134
134
|
on_exception
|
135
135
|
end
|
136
136
|
|
137
|
+
def deregister_instances_from_load_balancer(name, instance_ids)
|
138
|
+
params = {}
|
139
|
+
params['LoadBalancerName'] = name
|
140
|
+
|
141
|
+
i = 1
|
142
|
+
instance_ids.each do |l|
|
143
|
+
params["Instances.member.#{i}.InstanceId"] = "#{l}"
|
144
|
+
i += 1
|
145
|
+
end
|
146
|
+
|
147
|
+
@logger.info("Deregistering Instances #{instance_ids.join(',')} from Load Balancer '#{name}'")
|
148
|
+
|
149
|
+
link = generate_request("DeregisterInstancesFromLoadBalancer", params) # Same response as register I believe
|
150
|
+
resp = request_info(link, QElbRegisterInstanceParser.new(:logger => @logger))
|
151
|
+
|
152
|
+
rescue Exception
|
153
|
+
on_exception
|
154
|
+
end
|
137
155
|
|
138
156
|
def describe_load_balancers(lparams={})
|
139
157
|
@logger.info("Describing Load Balancers")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Reeder
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2009-11-
|
14
|
+
date: 2009-11-12 00:00:00 -08:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|