added option to change output path of report

This commit is contained in:
Derek Ekins 2011-07-19 09:38:19 +01:00
parent a5ed377e13
commit 8fccb4132e
1 changed files with 3 additions and 2 deletions

View File

@ -10,9 +10,10 @@ module Hydra #:nodoc:
end end
class CombineHtml class CombineHtml
def initialize def initialize(output_file = nil)
@results_path = File.join(Dir.pwd, 'results') @results_path = File.join(Dir.pwd, 'results')
@io = File.open(File.join(@results_path, 'report.html'), "w") output_file = File.join(@results_path, 'html/index.html') if output_file.nil?
@io = File.open(output_file, "w")
@builder = create_builder(@io) @builder = create_builder(@io)
end end