Sha256: d897fa77c475989fb2fd9c35956f93bb6707b8e67b63010f53547db86fca17a3
Contents?: true
Size: 508 Bytes
Versions: 11
Compression:
Stored size: 508 Bytes
Contents
begin require 'rubocop' namespace :bake do require 'rubocop/rake_task' RuboCop::RakeTask.new task :rubocop_announce do RakeNBake::Baker.log_step "Running Rubocop" end task :rubocop => :rubocop_announce 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::Baker.log_missing_gem 'rubocop' abort end end end end
Version data entries
11 entries across 11 versions & 1 rubygems