Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We were defining metrics:all twice so it ran twice and caused problem…

…s, also removed the individual metrics task as that really isn't well supported these days
  • Loading branch information...
commit ce36c9d416fc597cebdd24281390e0d3bdd7c5e3 1 parent 17ba451
@jscruggs jscruggs authored
Showing with 0 additions and 29 deletions.
  1. +0 −29 Rakefile
View
29 Rakefile
@@ -15,33 +15,4 @@ MetricFu::Configuration.run do |config|
config.template_class = AwesomeTemplate
end
-namespace :metrics do
- desc "Generate all reports"
- task :all do
- MetricFu.metrics.each {|metric| MetricFu.report.add(metric) }
- MetricFu.report.save_output(MetricFu.report.to_yaml,
- MetricFu.data_directory,
- "#{Time.now.strftime("%Y%m%d")}.yml")
- MetricFu.report.save_templatized_report
- if MetricFu.report.open_in_browser?
- MetricFu.report.show_in_browser(MetricFu.output_directory)
- end
- end
-
- MetricFu.metrics.each do |metric|
- desc "Generate report for #{metric}"
- task metric do
-
- MetricFu.report.add(metric)
- MetricFu.report.save_output(MetricFu.report.to_yaml,
- MetricFu.data_directory,
- "#{Time.now.strftime("%Y%m%d")}.yml")
- MetricFu.report.save_templatized_report
- if MetricFu.report.open_in_browser?
- MetricFu.report.show_in_browser(MetricFu.output_directory)
- end
- end
- end
-end
-
task :default => [:"metrics:all"]
Please sign in to comment.
Something went wrong with that request. Please try again.