From 9e0dd8524291a7e2b9b524d7446c337c4f777247 Mon Sep 17 00:00:00 2001 From: Evan Sosenko Date: Tue, 16 Feb 2016 18:37:34 -0800 Subject: [PATCH] Minor updates to Rakefile --- Rakefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index 05be662..8cfdb5d 100644 --- a/Rakefile +++ b/Rakefile @@ -4,10 +4,10 @@ require 'rspec/core/rake_task' require 'rubocop/rake_task' require 'yard' -task default: [:yard, :rubocop, :foodcritic, :spec] +task default: [:doc, :rubocop, :foodcritic, :spec] desc 'Run all tasks' -task all: [:yard, :rubocop, :foodcritic, :spec, 'kitchen:all'] +task all: [:doc, :rubocop, :foodcritic, :spec, 'kitchen:all'] desc 'Run kitchen integration tests' task test: ['kitchen:all'] @@ -17,8 +17,7 @@ task doc: [:readme, :yard] desc 'Generate README.md from _README.md.erb' task :readme do - cmd = %w(knife cookbook doc -t _README.md.erb .) - sh(*cmd) + sh(*%w(bundle exec knife cookbook doc -t _README.md.erb .)) end YARD::Config.load_plugin 'redcarpet-ext'