convection 0.2.29 → 0.2.30
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 +4 -4
- data/lib/convection/control/stack.rb +9 -1
- data/lib/convection/model/template/resource.rb +2 -0
- 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: 04b60c6f4c1de9889159bba6dbdb8093a6c6cedb
|
|
4
|
+
data.tar.gz: 79a81554e45696d23fd7aa5eb5aa8d96924a63f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4653842caa0c00679a0a0fc2e94447dbadcfab0d7067107bca58e1b91eb132e5b6be5021a20e68da4ecf24492f29d420127314ca6a420e109f4028633772315
|
|
7
|
+
data.tar.gz: cae2630869a056f8cb6b53364bd0638f08318a7ec701f00443c12e372b278f771d4ea3fdae28a0ef63a008ef7aa0fa55c08641589dad0b57e890c67fbf709190
|
|
@@ -89,6 +89,15 @@ module Convection
|
|
|
89
89
|
@current_template = {}
|
|
90
90
|
@last_event_seen = nil
|
|
91
91
|
|
|
92
|
+
# First pass evaluation of stack
|
|
93
|
+
# This is important because it:
|
|
94
|
+
# * Catches syntax errors before starting a converge
|
|
95
|
+
# * Builds a list of all resources that allows stacks early in
|
|
96
|
+
# the dependency tree to know about later stacks. Some
|
|
97
|
+
# clouds use this, for example, to create security groups early
|
|
98
|
+
# in the dependency tree to avoid the chicken-and-egg problem.
|
|
99
|
+
@template.execute
|
|
100
|
+
|
|
92
101
|
## Get initial state
|
|
93
102
|
get_status(cloud_name)
|
|
94
103
|
return unless exist?
|
|
@@ -379,7 +388,6 @@ module Convection
|
|
|
379
388
|
## TODO No. This will become unnecessary as current_state is fleshed out
|
|
380
389
|
def resource_attributes
|
|
381
390
|
@attribute_mapping_values = {}
|
|
382
|
-
@template.execute ## Populate mappings fro the template
|
|
383
391
|
|
|
384
392
|
@resources.each do |logical, resource|
|
|
385
393
|
next unless @template.attribute_mappings.include?(logical)
|
|
@@ -285,6 +285,7 @@ module Convection
|
|
|
285
285
|
##
|
|
286
286
|
attribute :type
|
|
287
287
|
attr_reader :name
|
|
288
|
+
attr_reader :parent
|
|
288
289
|
attr_reader :template
|
|
289
290
|
attr_reader :properties
|
|
290
291
|
attr_reader :resource_attributes
|
|
@@ -293,6 +294,7 @@ module Convection
|
|
|
293
294
|
|
|
294
295
|
def initialize(name, parent)
|
|
295
296
|
@name = name
|
|
297
|
+
@parent = parent
|
|
296
298
|
@template = parent.template
|
|
297
299
|
@type = self.class.type
|
|
298
300
|
@depends_on = []
|
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: 0.2.
|
|
4
|
+
version: 0.2.30
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Manero
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk
|