Sha256: 0590f2a89bcff5532e50879c1903bc55159a3197e12230be218901645cb71d7f

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

module MetricFu
  FLAY_DIR = File.join(MetricFu::BASE_DIRECTORY, 'flay')
  
  def self.generate_flay_report
    MetricFu::Flay.generate_report(FLAY_DIR)
    system("open #{FLAY_DIR}/index.html") if open_in_browser?    
  end
    
  class Flay < Base::Generator

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

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
p8-metric_fu-0.8.4.10 lib/metric_fu/flay.rb
p8-metric_fu-0.8.4.11 lib/metric_fu/flay.rb
p8-metric_fu-0.8.4.12 lib/metric_fu/flay.rb
p8-metric_fu-0.8.4.13 lib/metric_fu/flay.rb
p8-metric_fu-0.8.4.14 lib/metric_fu/flay.rb