cloudformation-tool 1.0.5 → 1.0.6
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e8802d4f4543117712752a42421cc796a9f0ca5ad0bc44360efa4a33607aee4
|
4
|
+
data.tar.gz: 99a622118ea253cb6618100bb910966693e05aa214b640dba3a10448c2cd33f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01521ce460da436e51f1c3a96686f55a5c7d05f613651f79ce768844917c6ffd185e6f78ef53a1ae00f0bdcdab9eceba4f94fc7d778643dcefa0c5d3ba3be0c2
|
7
|
+
data.tar.gz: dfc958e243469b01388bb1149b53dec7852935d38223e86ffdded8299b52102d375226a348c2b39766034aa628dabb948544357469b4f2c8525f00bbfbc40e6d
|
@@ -94,17 +94,20 @@ module CloudFormationTool
|
|
94
94
|
|
95
95
|
def resources
|
96
96
|
begin
|
97
|
-
|
98
|
-
|
97
|
+
awscf.list_stack_resources(stack_name: @name).each do |resp|
|
98
|
+
resp.stack_resource_summaries.each { |res| yield res }
|
99
|
+
end
|
99
100
|
rescue Aws::CloudFormation::Errors::ValidationError => e
|
100
101
|
raise CloudFormationTool::Errors::AppError, "Failed to get resources: #{e.message}"
|
101
102
|
end
|
102
103
|
end
|
103
104
|
|
104
105
|
def asgroups
|
105
|
-
|
106
|
-
|
107
|
-
|
106
|
+
output = []
|
107
|
+
resources do |res|
|
108
|
+
output << res if res.resource_type == 'AWS::AutoScaling::AutoScalingGroup'
|
109
|
+
end
|
110
|
+
output.collect do |res|
|
108
111
|
res.extend(CloudFormationTool)
|
109
112
|
res.instance_eval do
|
110
113
|
def group
|