Sha256: 6da7585efb32dfc37e2dc9a9f27973d3b666aa2deb05b3ae41369ddd9d730d9e
Contents?: true
Size: 550 Bytes
Versions: 5
Compression:
Stored size: 550 Bytes
Contents
begin require 'rails_best_practices' namespace :bake do desc 'a code metric tool to check the quality of rails code' task :rails_best_practices do RakeNBake::AssistantBaker.log_step 'Running Rails best practices' fail unless system('bundle exec rails_best_practices') end end rescue LoadError namespace :bake do desc 'rails best practices is not available (gem not installed)' task :rails_best_practices do RakeNBake::AssistantBaker.log_missing_gem 'rails_best_practices' abort end end end
Version data entries
5 entries across 5 versions & 1 rubygems