Sha256: 9b1c6e9a12bf4c22ca63ac94759945868fbcc80ca48188cdb03957dc91dfb6cd

Contents?: true

Size: 480 Bytes

Versions: 6

Compression:

Stored size: 480 Bytes

Contents

namespace :metrics do
  
  ROODI_DIR = File.join(MetricFu::BASE_DIRECTORY, 'roodi')
  ROODI_FILE = File.join(ROODI_DIR, 'index.html')
  
  desc "A Ruby coding standards report using Roodi"
  task :roodi do
    mkdir_p(ROODI_DIR) unless File.directory?(ROODI_DIR)
    `echo '<pre>' > #{ROODI_FILE}`
    `roodi #{RAILS_ROOT}/lib/**/*.rb #{RAILS_ROOT}/app/**/*.rb >> #{ROODI_FILE}`
    `echo '</pre>' >> #{ROODI_FILE}`
    system("open #{ROODI_FILE}") if PLATFORM['darwin']
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
factorylabs-metric_fu-0.8.0.4 lib/tasks/roodi.rake
factorylabs-metric_fu-0.8.0.5 lib/tasks/roodi.rake
jayzes-metric_fu-0.8.0.2 lib/tasks/roodi.rake
p8-metric_fu-0.8.4.1 lib/tasks/roodi.rake
p8-metric_fu-0.8.4.2 lib/tasks/roodi.rake
p8-metric_fu-0.8.4.3 lib/tasks/roodi.rake