summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-08-05 11:51:34 -0700
committerPete Higgins <pete@peterhiggins.org>2020-08-05 11:51:34 -0700
commitd0e5a03a7aa8f3e39a530119fdca3c598c15cd2c (patch)
tree75db1c6a1913c3e29da91e9f57ffd006bacfbdf1 /tasks
parent78edb89df3c6f2c83388290332bbe407ae719b6b (diff)
downloadchef-d0e5a03a7aa8f3e39a530119fdca3c598c15cd2c.tar.gz
Don't depend on chef-utils when it might not be available.update-spellcheck-setup
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'tasks')
-rw-r--r--tasks/spellcheck.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/spellcheck.rb b/tasks/spellcheck.rb
index 54e92483e2..7a3478c272 100644
--- a/tasks/spellcheck.rb
+++ b/tasks/spellcheck.rb
@@ -46,8 +46,8 @@ namespace :spellcheck do
end
task :cspell_check do
- require "chef-utils"
- ChefUtils.which("cspell") || abort(<<~INSTALL_CSPELL)
+ require "bundler"
+ Bundler.which("cspell") || abort(<<~INSTALL_CSPELL)
cspell is needed to run the spellcheck tasks. Run `npm install -g cspell` to install.
For more information: https://www.npmjs.com/package/cspell
INSTALL_CSPELL