added option to change output path of report
This commit is contained in:
parent
a5ed377e13
commit
8fccb4132e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue