convection 0.2.29 → 0.2.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01dfb1231347ca5e76c25bfa04db7011237cf94c
4
- data.tar.gz: 821332eb89f14c80115340e99474ce6a37711173
3
+ metadata.gz: 04b60c6f4c1de9889159bba6dbdb8093a6c6cedb
4
+ data.tar.gz: 79a81554e45696d23fd7aa5eb5aa8d96924a63f0
5
5
  SHA512:
6
- metadata.gz: 17972124358163ca0b5eb4a02be44902d1547e446a258ac94735bd2d52532e57cba2d9cc94e03e90813d5cec05e98925f62590fc9f27239884a1ca6abaf8f9f7
7
- data.tar.gz: d119d4c3b356293ac64ae7005a44d5c8b706e9bc7f3337ea51a26687ca4d5cb12bce53a4242ab6a22a5f8b6397ba73214f4b5f6b0a9bb70154052c8fc37caf08
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.29
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-10 00:00:00.000000000 Z
11
+ date: 2016-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk