ruby_aem_aws 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42322544cb63542d91bbd7ab0fbdc312ea499ea9
|
|
4
|
+
data.tar.gz: 27de0a21f2a6705cf3fd0fd895714aee1fd9221e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|