lib/terraspace/compiler/writer.rb in terraspace-2.2.2 vs lib/terraspace/compiler/writer.rb in terraspace-2.2.3

- old
+ new

@@ -32,10 +32,10 @@ def write(content) FileUtils.mkdir_p(File.dirname(dest_path)) if content.respond_to?(:path) # IO filehandle FileUtils.cp(content.path, dest_path) # preserves permission else # just content - IO.write(dest_path, content, mode: "wb") + IO.write(dest_path, content, mode: "wb") unless content.nil? end logger.debug "Created #{Terraspace::Util.pretty_path(dest_path)}" end end end