Sha256: fe1e99d7e9531c0f16dc1812493a2139cd9f76825bb2e0512364363178501766

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

def gem_present(name)
  !Bundler.rubygems.find_name(name).empty?
end

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

test_tasks = [:spec]

if gem_present 'rubocop'
  require 'rubocop/rake_task'
  RuboCop::RakeTask.new
  test_tasks.unshift(:rubocop)
end

task test: test_tasks

task default: :test

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rspec-puppet-facts-unsupported-0.1.1 Rakefile
rspec-puppet-facts-unsupported-0.1.0 Rakefile
puppet-examples-helpers-0.1.0 Rakefile