lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.5.0 vs lib/aws/cfn/dsl/template.rb in aws-cfn-dsl-0.6.0

- old
+ new

@@ -68,11 +68,11 @@ else super(name,options) end end - def hash_refs(line) + def hash_refs(line,scope) match = line.match %r/^(.*?)(\{\s*:\S+\s*=>.*?\}|\{\s*\S+:\s*.*?\})(.*)$/ if match h = nil eval "h = #{match[2]}", binding k = h.keys[0] @@ -82,11 +82,11 @@ else v.to_s end h[k.to_s] = v - VARS[:logger].debug h - [match[1], h, hash_refs(match[3]) ] + scope[:logger].debug h + [match[1], h, hash_refs(match[3],scope) ] else "#{line}\n" end end