convection 2.2.4 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/convection +2 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0afd8b79047197917f58e30e5ad00a2ba415c406
4
- data.tar.gz: 47933eb9c7297967ada1ccb4ec11f9e5d3302614
3
+ metadata.gz: 58179cf70528442bd10b2fdce205eee02133958e
4
+ data.tar.gz: 52ef55b55c5d479b8a305a9aabc4e2aeeab1a7fa
5
5
  SHA512:
6
- metadata.gz: 89d42f655f49a0bb2900bb6394a79dbcafec3eb6ade1c88bf297dd435e643ea7d700793f62ef2c879adae8e6a3f7858035e3d6aab2fef9f1e846aa3653ba9aba
7
- data.tar.gz: dc87f33d44b42d279b74f590170d84f2d2e4cc37e6380cc65d6e42106160e8a61c35d7dda5c9928614fa3ae54e7f2947f1ca7e2ef366c6cb73f4d2fc4539a532
6
+ metadata.gz: 8d57bf00e33c51e41231893bc944ee202e1e353abdb3cf98f1d085f447f09fce16b7a9fa9b032833c46e6afec3c8cde035fb1484c89cfe1a54adba250c84d0c5
7
+ data.tar.gz: d4360641cddeff614729e509521c3d84fecedf0f8b1f917519c6d6285b08f7adf0c2f7339f9aaa4f499b45df50f73ca91b00953b3729250affa25b9b20c4b9f3
data/bin/convection CHANGED
@@ -147,6 +147,8 @@ module Convection
147
147
  require 'convection/dsl/terraform_intrinsic_functions'
148
148
  Convection::DSL::TerraformIntrinsicFunctions.overload(Convection::DSL::IntrinsicFunctions.mixers)
149
149
 
150
+ # Reload all resources and collection to ensure configuration is up to date. Amazon psuedo functions will have changed their return values.
151
+ template.execute
150
152
  template.resource_collections.each(&method(:import_resources))
151
153
  template.resources.each(&method(:import_resources))
152
154
  end
@@ -159,9 +161,6 @@ module Convection
159
161
  private
160
162
 
161
163
  def import_resources(_resource_name, resource)
162
- # Reload this resource to ensure configuration is up to date. Amazon psuedo functions will have changed their return values.
163
- resource.execute
164
-
165
164
  if resource.respond_to?(:to_hcl_json)
166
165
  empty_directory options[:output_directory]
167
166
  destination = File.join(options[:output_directory], "#{resource.name.downcase}.tf.json")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convection
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.4
4
+ version: 2.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero