Sha256: 3aadafa7002b7c1009eb20ec8b25c820d779a5ff46824c00a6fcf6cac8c02133

Contents?: true

Size: 827 Bytes

Versions: 15

Compression:

Stored size: 827 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.base_directory, 
                                "report.yml")
    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_engine) }
    MetricFu.graph.generate
    
    if MetricFu.report.open_in_browser?
      MetricFu.report.show_in_browser(MetricFu.output_directory)
    end
  end
end

Version data entries

15 entries across 15 versions & 8 rubygems

Version Path
cayblood-metric_fu-1.1.6 tasks/metric_fu.rake
goldstar-metric_fu-1.5.1.2 tasks/metric_fu.rake
metric_fu-2.0.0 tasks/metric_fu.rake
goldstar-metric_fu-1.5.1.1 tasks/metric_fu.rake
metric_fu-1.5.1 tasks/metric_fu.rake
metric_fu-1.5.0 tasks/metric_fu.rake
metric_fu-1.4.0 tasks/metric_fu.rake
cdd-metric_fu-1.3.1 lib/tasks/metric_fu.rake
devver-metric_fu-1.3.3 tasks/metric_fu.rake
nielsm-metric_fu-1.3.1 tasks/metric_fu.rake
metric_fu-1.3.0 tasks/metric_fu.rake
edouard-metric_fu-1.2.1 tasks/metric_fu.rake
edouard-metric_fu-1.2.0 tasks/metric_fu.rake
metric_fu-1.2.0 tasks/metric_fu.rake
flyerhzm-metric_fu-1.0.0 tasks/metric_fu.rake