diff options
author | Tim Smith <tsmith@chef.io> | 2021-05-06 23:14:17 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2021-05-07 14:21:40 -0700 |
commit | d4d373d32239281087a06739ee53a7d35bd69cfe (patch) | |
tree | 2f98d9971b80b1a244bfe5ebf4e60c1d619e1662 | |
parent | 25d3b6ee71113ec9bfbf46d59f2f12f0733d528e (diff) | |
download | chef-d4d373d32239281087a06739ee53a7d35bd69cfe.tar.gz |
Fix 2 typos in code and slim our cspell exceptions down
These are all in our global dictionary at this point
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | cspell.json | 26 | ||||
-rw-r--r-- | lib/chef/shell/ext.rb | 6 | ||||
-rw-r--r-- | post-bundle-install.rb | 2 |
3 files changed, 4 insertions, 30 deletions
diff --git a/cspell.json b/cspell.json index fbf9da6549..35f0bd8f24 100644 --- a/cspell.json +++ b/cspell.json @@ -101,10 +101,6 @@ "backends", "backoff", "BACKOFFICE", - "backport", - "backported", - "Backporting", - "backporting", "backslashing", "backtrace", "backtraces", @@ -133,18 +129,11 @@ "bkup", "blockdev", "blocklist", - "blocklisted", - "blocklists", - "bmhatfield", - "bobberson", - "bobchaos", "bobo", "bobotclown", - "bootproto", "bootstrapper", "bootstrappers", "borat", - "Brimager", "brodock", "bsearch", "bsevn", @@ -155,7 +144,6 @@ "bugfixes", "bugfixing", "bugok", - "Buildkite", "BUNDER", "busybox", "bypassproxy", @@ -183,7 +171,6 @@ "CFLAGS", "CFPREFERENCES", "cfprefsd", - "cgroup", "chadmccune", "Chaput", "chardev", @@ -199,10 +186,6 @@ "chefclientinstalldone", "CHEFCONFIG", "chefdir", - "chefdk", - "cheffish", - "cheffs", - "Chefignore", "chefignored", "chefignores", "chefscriptresult", @@ -210,26 +193,19 @@ "cheftest", "CHEFUTILS", "chefzero", - "chgroup", - "chgrp", "chgrpmem", "chilcote", "CHINESEBIG", - "CHKCONFIG", - "chkconfig", "Chouhan", "ckbk", "cksum", "cleanpath", "cleanpaths", "cleanroom", - "clearlinux", - "clearos", "CLEARTEXT", "CLIENTAUTHISSUER", "clientname", "CLOEXEC", - "Cloke", "cmdlets", "CMDS", "cmds", @@ -237,7 +213,6 @@ "CMPL", "cname", "codepage", - "coderanger", "CODESEG", "colleciton", "COLORINDEX", @@ -245,7 +220,6 @@ "COLORSPACE", "COMBOBOX", "commandline", - "commmand", "compat", "COMPOSITECHECK", "computerlevel", diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb index b884658e98..e23a4aac42 100644 --- a/lib/chef/shell/ext.rb +++ b/lib/chef/shell/ext.rb @@ -198,9 +198,9 @@ module Shell prints a detailed explanation of the command if available, or the description if no explanation is available. E - def help(commmand = nil) - if commmand - explain_command(commmand) + def help(command = nil) + if command + explain_command(command) else puts help_banner end diff --git a/post-bundle-install.rb b/post-bundle-install.rb index 9d7491de77..3abefab725 100644 --- a/post-bundle-install.rb +++ b/post-bundle-install.rb @@ -19,7 +19,7 @@ Dir["#{gem_home}/bundler/gems/*"].each do |gempath| puts "re-installing #{gem_name}..." - # we can't use "commmand" or "bundle" or "gem" DSL methods here since those are lazy and we need to run commands immediately + # we can't use "command" or "bundle" or "gem" DSL methods here since those are lazy and we need to run commands immediately # (this is like a shell_out inside of a ruby_block in core chef, you don't use an execute resource inside of a ruby_block or # things get really weird and unexpected) Dir.chdir(gempath) do |