Sha256: de3032ea2e46a7ff1d0e324442c849c9c5159a06fcd6240f33f711e974140125

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'lib/metric_fu'

desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
end

MetricFu::Configuration.run do |config|
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.base_directory, 
                                'report.yml')
    MetricFu.report.save_templatized_report
    if MetricFu.report.open_in_browser?
      MetricFu.report.show_in_browser(MetricFu.output_directory)
    end
  end
end

task :default => [:"metrics:all"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
p8-metric_fu-0.9.0.1 Rakefile