ace-client-ext 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -35,7 +35,7 @@ module AceClient
35
35
 
36
36
  def load_balancers
37
37
  response = self.action('DescribeLoadBalancers', {})
38
- [response['DescribeLoadBalancersResult']['LoadBalancerDescriptions']['member']].flatten rescue []
38
+ [response['DescribeLoadBalancersResponse']['DescribeLoadBalancersResult']['LoadBalancerDescriptions']['member']].flatten rescue []
39
39
  end
40
40
 
41
41
  def security_group_rules
@@ -120,7 +120,12 @@ module AceClient
120
120
  end
121
121
 
122
122
  def delete_load_balancers
123
- # not implemented yet
123
+ self.load_balancers.each do |lb|
124
+ name = lb['LoadBalancerName']
125
+ port = lb['ListenerDescriptions']['member']['Listener']['LoadBalancerPort']
126
+ instance_port = lb['ListenerDescriptions']['member']['Listener']['InstancePort']
127
+ self.action('DeleteLoadBalancer', 'LoadBalancerName' => name, 'LoadBalancerPort' => port, 'InstancePort' => instance_port)
128
+ end
124
129
  end
125
130
 
126
131
  def delete_volumes
@@ -136,7 +141,7 @@ module AceClient
136
141
  end
137
142
  end
138
143
  end
139
-
144
+
140
145
  def delete_resources
141
146
  stop_instances
142
147
  delete_instances
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-client-ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: