convection 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/convection +1 -0
- data/lib/convection/terraform/ext/stack.rb +17 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 486c187ed6d2866b20482f3a6f9372fc55fe5221
|
4
|
+
data.tar.gz: cea1c54e561e17833b76268a28aaf087a0cc55c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 492e23623acbebb0995c788c64b6cceebb576ef9cae1cb034408e8b8f980fb770e2c74874e947a7da0351a9be14ca383c96181b60bc65c151f12535d20ccc766
|
7
|
+
data.tar.gz: d818dafdaeff98149a200dc97588b7eb85313d1a7c93af01e307a069ad0e7e66ebb6ec65e666d2d9c0a2a15777cefba0fa3378a8c567f069ce81651daf608d04
|
data/README.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
docs/index.md
|
1
|
+
./docs/index.md
|
data/bin/convection
CHANGED
@@ -146,6 +146,7 @@ module Convection
|
|
146
146
|
# This should only be done in single threaded environment in the terraform-export command as it breaks usage of cloudformation psuedo-functions.
|
147
147
|
require 'convection/dsl/terraform_intrinsic_functions'
|
148
148
|
Convection::DSL::TerraformIntrinsicFunctions.overload(Convection::DSL::IntrinsicFunctions.mixers)
|
149
|
+
require 'convection/terraform/ext/stack'
|
149
150
|
|
150
151
|
# Reload all resources and collection to ensure configuration is up to date. Amazon psuedo functions will have changed their return values.
|
151
152
|
template.execute
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Convection
|
2
|
+
module Control
|
3
|
+
# Monkey patch functions defined on Stack for use during terraform
|
4
|
+
# export.
|
5
|
+
class Stack
|
6
|
+
alias _original_cloud cloud
|
7
|
+
def cloud
|
8
|
+
'${var.cloud}'
|
9
|
+
end
|
10
|
+
|
11
|
+
alias _original_region region
|
12
|
+
def region
|
13
|
+
'${data.aws_region.current.name}'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
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.6
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -310,6 +310,7 @@ files:
|
|
310
310
|
- lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule.rb
|
311
311
|
- lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule_redirect_rule.rb
|
312
312
|
- lib/convection/model/template/resource_property/aws_s3_website_configuration_routing_rule_routing_rule_condition.rb
|
313
|
+
- lib/convection/terraform/ext/stack.rb
|
313
314
|
- lib/convection/version.rb
|
314
315
|
- spec/cf_client_context.rb
|
315
316
|
- spec/collect_availability_zones_task_context.rb
|
@@ -378,7 +379,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
378
379
|
version: '0'
|
379
380
|
requirements: []
|
380
381
|
rubyforge_project:
|
381
|
-
rubygems_version: 2.
|
382
|
+
rubygems_version: 2.6.13
|
382
383
|
signing_key:
|
383
384
|
specification_version: 4
|
384
385
|
summary: A fully generic, modular DSL for AWS CloudFormation
|