Sha256: 6f444db40310ef9553afbb60b6d975daaeb6ec33c5e09296608d9d4b1e730909

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 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 :reek 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

2 entries across 2 versions & 1 rubygems

Version Path
jayzes-metric_fu-0.8.0.1 lib/tasks/roodi.rake
jayzes-metric_fu-0.8.0 lib/tasks/roodi.rake