Sha256: cecf04a44a190b2a2b9e7149eb092e032590f9813d8660f5a89c972b9b6054e9

Contents?: true

Size: 536 Bytes

Versions: 4

Compression:

Stored size: 536 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

4 entries across 4 versions & 1 rubygems

Version Path
ohai-8.26.1 Rakefile
ohai-8.26.0 Rakefile
ohai-8.25.1 Rakefile
ohai-8.25.0 Rakefile