convection 2.2.7 → 2.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/convection +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ba2f42fdb7fb671c533b288722cc026c63dc4bc
|
4
|
+
data.tar.gz: a9b28acd74ab17f87758ed6335c96abc25d9e00d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c562ffe40cf33291e5f7f432f165159ecadde45b51c54d5360eaf7cd897fd177b2f673bb9d12e83f6754c40f34feeaa83620922b78be0b8d73e11d31628b46a
|
7
|
+
data.tar.gz: e48170671159844192d07f493921a7304c66d36065a37b171ec9518e5f6e0c8a00d78c9179ce0f779d9cb052842bab43b4e3e753061a601690be4e8d914d170d
|
data/bin/convection
CHANGED
@@ -248,14 +248,16 @@ module Convection
|
|
248
248
|
if resource.respond_to?(:to_hcl_json)
|
249
249
|
destination = File.join(options[:output_directory], "#{resource.name.underscore}.tf.json")
|
250
250
|
create_file destination, resource.to_hcl_json, force: options[:overwrite], skip: options[:skip_existing]
|
251
|
+
elsif resource.respond_to?(:additional_hcl_files)
|
252
|
+
say "# Skipping to HCL generation with #to_hcl_json. Will generate HCL using #additional_hcl_files instead.", :cyan
|
251
253
|
else
|
252
254
|
say "# Unable to generate terraform configuration for #{resource.class}. Define #{resource.class}#to_hcl_json to do so.", :yellow
|
253
255
|
end
|
254
256
|
|
255
257
|
if resource.respond_to?(:additional_hcl_files)
|
256
258
|
resource.additional_hcl_files.each do |file, content|
|
257
|
-
destination = File.join(options[:output_directory], file)
|
258
|
-
create_file destination, content, force: options[:overwrite], skip: options[:skip_existing]
|
259
|
+
destination = File.join(options[:output_directory], file.to_s)
|
260
|
+
create_file destination, content.to_json, force: options[:overwrite], skip: options[:skip_existing]
|
259
261
|
end
|
260
262
|
end
|
261
263
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: convection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Manero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-12-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|