honour -o

This commit is contained in:
Marko Mikulicic 2010-03-26 12:00:47 +01:00 committed by Ryan Tomayko
parent 545fd53b88
commit 367437fec5

View File

@ -83,7 +83,7 @@ Dir.mkdir output_dir if !File.directory?(output_dir)
# Run each file through Rocco and write output.
sources.each do |filename|
rocco = Rocco.new(filename, sources, options)
dest = filename.split('.')[0..-2].join('.') + '.html'
dest = File.join(output_dir, filename.split('.')[0..-2].join('.') + '.html')
puts "rocco: #{filename} -> #{dest}"
File.open(dest, 'wb') { |fd| fd.write(rocco.to_html) }
end