Sha256: 2d3d138bb2028aa17e8d15890a1ccb0faf49f69659b53eeebb4379425aea1aa3

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

begin
  require 'rubocop'

  namespace :bake do
    require 'rubocop/rake_task'
    RuboCop::RakeTask.new
  end

rescue LoadError
  tasks = %w[ rubocop ]

  namespace :bake do
    tasks.map(&:to_sym).each do |t|
      desc 'rubocop is not available (gem not installed)'
      task t do
        RakeNBake::AssistantBaker.log_missing_gem 'rubocop'
        abort
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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