free_mutant/tasks/metrics/reek.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
362 B
Ruby

begin
require 'reek/rake/task'
if defined?(RUBY_ENGINE) and RUBY_ENGINE == 'rbx'
task :reek do
$stderr.puts 'Reek fails under rubinius, fix rubinius and remove guard'
end
else
Reek::Rake::Task.new
end
rescue LoadError
task :reek do
$stderr.puts 'Reek is not available. In order to run reek, you must: gem install reek'
end
end