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

Version Path
rake-n-bake-1.4.1 tasks/rails_best_practices.rake
rake-n-bake-1.4.0 tasks/rails_best_practices.rake
rake-n-bake-1.3.3 tasks/rails_best_practices.rake
rake-n-bake-1.3.1 tasks/rails_best_practices.rake
rake-n-bake-1.3.0 tasks/rails_best_practices.rake