Permalink
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...
1 parent 17ba451 commit ce36c9d416fc597cebdd24281390e0d3bdd7c5e3 @jscruggs jscruggs committed Jun 22, 2009
Showing with 0 additions and 29 deletions.
  1. +0 −29 Rakefile
View
@@ -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"]

0 comments on commit ce36c9d

Please sign in to comment.