cloudformation-tool 1.0.5 → 1.0.6

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
  SHA256:
3
- metadata.gz: 72b77e70306d3203e76898284edecd89daee64e164329fdb2ab53f3eabcc1559
4
- data.tar.gz: deef3362134e2aa8edd7969f0307dc0731ed9bb93b3dd4b0143bbc747428ced4
3
+ metadata.gz: 4e8802d4f4543117712752a42421cc796a9f0ca5ad0bc44360efa4a33607aee4
4
+ data.tar.gz: 99a622118ea253cb6618100bb910966693e05aa214b640dba3a10448c2cd33f3
5
5
  SHA512:
6
- metadata.gz: 2c519e62fc5bb7288a4be2aa785dffe3e717ec1380befe06d08823e6489474bd26843cc4bf7454cc3b70e3b1559b5efad70d557cf40bd36e7841d767a88b8045
7
- data.tar.gz: 3e5e245e1387416c4ceaaaabf0ce791a7bf8bc893dd3a4a3fe0fe15b335eb0b0adde6fc59a5d1f4e3d6464ce8afe51971d7e839465768071352490d1276183b6
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
- resp = awscf.describe_stack_resources stack_name: @name
98
- resp.stack_resources
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
- resources.select do |res|
106
- res.resource_type == 'AWS::AutoScaling::AutoScalingGroup'
107
- end.collect do |res|
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
@@ -1,3 +1,3 @@
1
1
  module CloudFormationTool
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel