Sha256: a32cad4eac4912a632ba3cab40d90a82245290ae161f620478e5d27c0df679a9

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

module MetricFu
  
  def self.generate_roodi_report
    Roodi.generate_report
    system("open #{Roodi.metric_dir}/index.html") if open_in_browser?    
  end
    
  class Roodi < Base::Generator

    def analyze
      files_to_analyze = MetricFu.roodi[:dirs_to_roodi].map{|dir| Dir[File.join(dir, "**/*.rb")] }
      output = `roodi #{files_to_analyze.join(" ")}`
      @matches = output.chomp.split("\n").map{|m| m.split(" - ") }
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
p8-metric_fu-0.9.0.1 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.2 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.3 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.4 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.5 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.6 lib/metric_fu/roodi.rb
p8-metric_fu-0.9.0.7 lib/metric_fu/roodi.rb