lib/metric_fu/base.rb in p8-metric_fu-0.8.4.12 vs lib/metric_fu/base.rb in p8-metric_fu-0.8.4.13
- old
+ new
@@ -28,11 +28,11 @@
def self.generate_report(base_dir, options={})
FileUtils.mkdir_p(base_dir, :verbose => false) unless File.directory?(base_dir)
self.new(base_dir, options).generate_report
end
- def save_html(content, file='index')
- open("#{@base_dir}/#{file}.html", "w") do |f|
+ def save_html(content, file='index.html')
+ open("#{@base_dir}/#{file}", "w") do |f|
f.puts content
end
end
def generate_report
\ No newline at end of file