Sha256: dd00f293326b5cc42a9159bc5b0968cd9f49424dd46f79466ff0b092bcc13b61

Contents?: true

Size: 643 Bytes

Versions: 7

Compression:

Stored size: 643 Bytes

Contents

require 'rake'
namespace :metrics do
  desc "Generate all metrics reports"
  task :all do
    MetricFu::Configuration.run {}
    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
    
    MetricFu.graphs.each {|graph| MetricFu.graph.add(graph) }
    MetricFu.graph.generate
    
    if MetricFu.report.open_in_browser?
      MetricFu.report.show_in_browser(MetricFu.output_directory)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
edouard-metric_fu-1.0.2 tasks/metric_fu.rake
edouard-metric_fu-1.0.4.1 tasks/metric_fu.rake
edouard-metric_fu-1.0.4.2 tasks/metric_fu.rake
edouard-metric_fu-1.0.4.3 tasks/metric_fu.rake
edouard-metric_fu-1.0.4.4 tasks/metric_fu.rake
edouard-metric_fu-1.0.4.5 tasks/metric_fu.rake
edouard-metric_fu-1.0.4 tasks/metric_fu.rake