From fe2dc71a60d4f5ecd725be864966971a108552c9 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 30 Jul 2018 15:39:40 -0700 Subject: Add the actual rake updates Signed-off-by: Tim Smith --- Rakefile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 7be508e..d6c0027 100644 --- a/Rakefile +++ b/Rakefile @@ -1,9 +1,14 @@ require "bundler/gem_tasks" require "rspec/core/rake_task" -RSpec::Core::RakeTask.new(:spec) +task default: [:style, :spec] -task default: :spec +Bundler::GemHelper.install_tasks + +desc "Run specs" +RSpec::Core::RakeTask.new(:spec) do |spec| + spec.pattern = "spec/**/*_spec.rb" +end begin require "chefstyle" @@ -12,7 +17,20 @@ begin task.options += ["--display-cop-names", "--no-color"] end rescue LoadError - puts "chefstyle/rubocop is not available." + puts "chefstyle/rubocop is not available. bundle install first to make sure all dependencies are installed." end -task ci: [:style, :spec] +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 "mixlib/authentication" + ARGV.clear + IRB.start +end -- cgit v1.2.1