ruby_aem_aws 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2611b58397e0504f3ae61a016d05397f2958b71a
4
- data.tar.gz: 81d26e4fab9981f591ac10a56725d9a1b467895e
3
+ metadata.gz: 42322544cb63542d91bbd7ab0fbdc312ea499ea9
4
+ data.tar.gz: 27de0a21f2a6705cf3fd0fd895714aee1fd9221e
5
5
  SHA512:
6
- metadata.gz: ec8d87c5a984a70506d23a849ed3c21209e4db952c7efe3f35e56d0eb4bdfb3c2130aab5ac26c7338317637a65c8b41b99d066db6a2d91736d3a2c0668c68622
7
- data.tar.gz: a10df33c155883eccbe5b3adf3c16dd68cb0ae1e629ed070045889b7b5d8d094a9d7354ee05b32eef8b3c2e470cc389bddc7d171781c1132fad7cc615b579a39
6
+ metadata.gz: 6d97fb9223b946fa4a5684a8969b84da18f64a2b0cb53639e138a46e30b2de471971343af06200db7157220dd02f89320994cfda90e055328c5b5aa449e1cb8f
7
+ data.tar.gz: 7ce13dd0e50cac2f11509ec69cd57cea577524ce2de4444d89f6a13ac078284094e7d388024912ec2c2684b0ac9508ef12e9e01d2055228ef83c6e00b28fd774
@@ -116,7 +116,20 @@ module RubyAemAws
116
116
 
117
117
  # @return AutoScalingGroup by StackPrefix and Component tags.
118
118
  def find_auto_scaling_group(asg_client)
119
- autoscaling_groups = asg_client.describe_auto_scaling_groups
119
+ autoscaling_groups = asg_client.describe_auto_scaling_groups(max_records: 50)
120
+ find_auto_scaling_group = find_auto_scaling_group_name(autoscaling_groups)
121
+
122
+ return find_auto_scaling_group unless find_auto_scaling_group.nil?
123
+
124
+ until autoscaling_groups.next_token.nil?
125
+ autoscaling_groups = asg_client.describe_auto_scaling_groups(max_records: 50, next_token: autoscaling_groups.next_token)
126
+ find_auto_scaling_group = find_auto_scaling_group_name(autoscaling_groups)
127
+ return find_auto_scaling_group unless find_auto_scaling_group.nil?
128
+ end
129
+ return nil if find_auto_scaling_group.nil?
130
+ end
131
+
132
+ def find_auto_scaling_group_name(autoscaling_groups)
120
133
  autoscaling_groups.auto_scaling_groups.each do |autoscaling_group|
121
134
  asg_matches_stack_prefix = false
122
135
  asg_matches_component = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_aem_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shine Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk