lib/cfer/core/stack.rb in cfer-0.5.0.pre.rc1 vs lib/cfer/core/stack.rb in cfer-0.5.0.pre.rc2

- old
+ new

@@ -167,14 +167,10 @@ # Filenames are relative to the file containing the invocation of this method. def include_template(*files) include_base = options[:include_base] || File.dirname(caller.first.split(/:\d/,2).first) files.each do |file| path = File.join(include_base, file) - if path.ends_with?('.json') - self.deep_merge! JSON.parse(File.read(path)) - else - instance_eval(File.read(path), path) - end + include_file(path) end end # Looks up a specific output of another CloudFormation stack in the same region. # @param stack [String] The name of the stack to fetch an output from