Sha256: 0b3c057f3e37adee69537fc1d3218491b55e3f615f8c27a3426cecdd8a8fbd61

Contents?: true

Size: 445 Bytes

Versions: 13

Compression:

Stored size: 445 Bytes

Contents

begin
  require "rubycritic"

  namespace :bake do
    task :rubycritic do
      RakeNBake::Baker.log_step 'Running rubycritic'
      system('rubycritic')
    end
  end

rescue LoadError
  tasks = %w[ rubycritic ]

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rake-n-bake-3.1.2 tasks/ruby_critic.rake
rake-n-bake-3.1.1 tasks/ruby_critic.rake
rake-n-bake-3.1.0 tasks/ruby_critic.rake
rake-n-bake-3.0.0 tasks/ruby_critic.rake
rake-n-bake-2.1.4 tasks/ruby_critic.rake
rake-n-bake-2.1.3 tasks/ruby_critic.rake
rake-n-bake-2.1.2 tasks/ruby_critic.rake
rake-n-bake-2.1.1 tasks/ruby_critic.rake
rake-n-bake-2.1.0 tasks/ruby_critic.rake
rake-n-bake-2.0.1 tasks/ruby_critic.rake
rake-n-bake-2.0.0 tasks/ruby_critic.rake
rake-n-bake-1.4.3 tasks/ruby_critic.rake
rake-n-bake-1.4.2 tasks/ruby_critic.rake