lib/ufo/dsl/outputter.rb in ufo-2.3.0 vs lib/ufo/dsl/outputter.rb in ufo-3.0.0
- old
+ new
@@ -7,10 +7,10 @@
@options = options
@pretty = options[:pretty].nil? ? true : options[:pretty]
end
def write
- output_path = "#{@options[:project_root]}/ufo/output"
+ output_path = "#{Ufo.root}/.ufo/output"
FileUtils.rm_rf(output_path) if @options[:clean]
FileUtils.mkdir(output_path) unless File.exist?(output_path)
path = "#{output_path}/#{@name}.json".sub(/^\.\//,'')
puts " #{path}" unless @options[:quiet]