Sha256: ca186f56de1dcf7dc76ee5e740a050e6c0b69bae9487402e39b0302c7fbec399

Contents?: true

Size: 533 Bytes

Versions: 3

Compression:

Stored size: 533 Bytes

Contents

require "bundler/gem_tasks"
require "date"
require "ohai/version"

begin
  require "rspec/core/rake_task"

  RSpec::Core::RakeTask.new do |t|
    t.pattern = "spec/**/*_spec.rb"
  end
rescue LoadError
  desc "rspec is not installed, this task is disabled"
  task :spec do
    abort "rspec is not installed. `(sudo) gem install rspec` to run unit tests"
  end
end

task default: :spec

require "chefstyle"
require "rubocop/rake_task"
RuboCop::RakeTask.new(:style) do |task|
  task.options += ["--display-cop-names", "--no-color"]
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ohai-14.4.2 Rakefile
ohai-14.4.1 Rakefile
ohai-14.4.0 Rakefile