Sha256: 9a0d9cb8795032ec34c9caf6c289471ceb31fd1aed9e808e923c92b8c39895eb

Contents?: true

Size: 985 Bytes

Versions: 13

Compression:

Stored size: 985 Bytes

Contents

require "bundler/gem_tasks"

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. bundle install first to make sure all dependencies are installed."
  end
end

begin
  require "chefstyle"
  require "rubocop/rake_task"
  desc "Run Chefstyle tests"
  RuboCop::RakeTask.new(:style) do |task|
    task.options += ["--display-cop-names", "--no-color"]
  end
rescue LoadError
  puts "chefstyle gem is not installed. bundle install first to make sure all dependencies are installed."
end

begin
  require "yard"
  YARD::Rake::YardocTask.new(:docs)
rescue LoadError
  puts "yard is not available. bundle install first to make sure all dependencies are installed."
end

task :console do
  require "irb"
  require "irb/completion"
  require "ohai"
  ARGV.clear
  IRB.start
end

task default: [:style, :spec]

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ohai-14.15.0 Rakefile
ohai-14.14.0 Rakefile
ohai-15.1.5 Rakefile
ohai-15.1.3 Rakefile
ohai-14.8.12 Rakefile
ohai-15.0.35 Rakefile
ohai-14.8.11 Rakefile
ohai-13.12.6 Rakefile
ohai-14.8.10 Rakefile
ohai-13.12.4 Rakefile
ohai-14.6.2 Rakefile
ohai-14.5.4 Rakefile
ohai-14.5.0 Rakefile