free_mutant/tasks/metrics/roodi.rake
Markus Schirp 8c1fa8dace Add project infrastructure
* This infrastructure, especially the rake tasks should be
  gemified at some point in the future. I copied exactly the same
  bytes many times in the last month.
2012-07-23 16:37:44 +02:00

15 lines
364 B
Ruby

begin
require 'roodi'
require 'rake/tasklib'
require 'roodi_task'
RoodiTask.new do |t|
t.verbose = false
t.config = File.expand_path('../../../config/roodi.yml', __FILE__)
t.patterns = %w[ lib/**/*.rb ]
end
rescue LoadError
task :roodi do
abort 'Roodi is not available. In order to run roodi, you must: gem install roodi'
end
end