lib/tasks/flay.rake in p8-metric_fu-0.8.0.16 vs lib/tasks/flay.rake in p8-metric_fu-0.8.2
- old
+ new
@@ -1,6 +1,9 @@
+FLAY_DIR = File.join(MetricFu::BASE_DIRECTORY, 'flay')
+
namespace :metrics do
desc "Generate code duplication report with flay"
task :flay do
- MetricFu.generate_flay_report
+ MetricFu::FlayReporter.generate_report(FLAY_DIR)
+ system("open #{FLAY_DIR}/index.html") if PLATFORM['darwin']
end
end
\ No newline at end of file