diff options
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -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 |