lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.5.0 vs lib/aws/cfn/compiler/base.rb in aws-cfn-compiler-0.5.1
- old
+ new
@@ -61,9 +61,11 @@
end
@logger.step ' References validated'
end
def save(compiled, output_file)
+ output_file = File.expand_path(output_file) if @config[:expandedpaths]
+ @logger.step"Writing compiled file to #{output_file}..."
begin
hash = {}
compiled.each do |item,value|
unless value.nil?
if (not value.is_a?(Hash)) or (value.count > 0)