diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-05-07 16:50:25 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-05-18 20:29:40 -0700 |
commit | a729c9be155e3d335fbd7bd165abd4ba9610943d (patch) | |
tree | 75b4b985ff469f033dc644857a8183d784611d34 /lib/chef/provider | |
parent | a36abdaf4c6cad4df506866021ec7abb2266706b (diff) | |
download | chef-a729c9be155e3d335fbd7bd165abd4ba9610943d.tar.gz |
Get lib/ free of spelling violations.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/provider')
-rw-r--r-- | lib/chef/provider/directory.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/chocolatey.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/dpkg.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/portage.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/package/rubygems.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/windows.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/yum.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/package/yum/yum_cache.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/remote_directory.rb | 4 | ||||
-rw-r--r-- | lib/chef/provider/service/arch.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/service/upstart.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/user/aix.rb | 2 | ||||
-rw-r--r-- | lib/chef/provider/user/mac.rb | 12 | ||||
-rw-r--r-- | lib/chef/provider/windows_task.rb | 6 |
14 files changed, 25 insertions, 18 deletions
diff --git a/lib/chef/provider/directory.rb b/lib/chef/provider/directory.rb index d031ab567c..555340d91e 100644 --- a/lib/chef/provider/directory.rb +++ b/lib/chef/provider/directory.rb @@ -142,7 +142,7 @@ class Chef converge_by("delete existing directory #{new_resource.path}") do if new_resource.recursive == true # we don't use rm_rf here because it masks all errors, including - # IO errors or permission errors that would prvent the deletion + # IO errors or permission errors that would prevent the deletion FileUtils.rm_r(new_resource.path) logger.info("#{new_resource} deleted #{new_resource.path} recursively") else diff --git a/lib/chef/provider/package/chocolatey.rb b/lib/chef/provider/package/chocolatey.rb index f1f2307f5b..498a98f2d0 100644 --- a/lib/chef/provider/package/chocolatey.rb +++ b/lib/chef/provider/package/chocolatey.rb @@ -249,7 +249,7 @@ class Chef end # Helper to convert choco.exe list output to a Hash - # (names are downcased for case-insenstive matching) + # (names are downcased for case-insensitive matching) # # @param cmd [String] command to run # @return [Hash] list output converted to ruby Hash diff --git a/lib/chef/provider/package/dpkg.rb b/lib/chef/provider/package/dpkg.rb index e6012edee8..08829e9b26 100644 --- a/lib/chef/provider/package/dpkg.rb +++ b/lib/chef/provider/package/dpkg.rb @@ -149,7 +149,7 @@ class Chef resolved_source_array.all? { |s| s && ::File.exist?(s) } end - # Helper to return all the nanes of the missing sources for error messages. + # Helper to return all the names of the missing sources for error messages. # # @return [Array<String>] Array of missing sources def missing_sources diff --git a/lib/chef/provider/package/portage.rb b/lib/chef/provider/package/portage.rb index 12bc33698e..002c1f96d4 100644 --- a/lib/chef/provider/package/portage.rb +++ b/lib/chef/provider/package/portage.rb @@ -70,6 +70,7 @@ class Chef if pkginfo.exitstatus != 0 pkginfo.stderr.each_line do |line| + # cspell:disable-next-line if line =~ /[Uu]nqualified atom .*match.* multiple/ raise_error_for_query("matched multiple packages (please specify a category):\n#{pkginfo.inspect}") end diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb index 03d2757112..fa2b5a66d7 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -250,7 +250,7 @@ class Chef private def logger - Chef::Log.with_child({ subsytem: "gem_installer_environment" }) + Chef::Log.with_child({ subsystem: "gem_installer_environment" }) end end diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index 7c77461499..8ee5b36f5d 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -169,7 +169,7 @@ class Chef # is not multipackage. The existing implementation of package_provider.installed_version should probably # be what `uninstall_version_array` is, and then that list should be sorted and last/first'd into the # current_resource.version. The current_version_array method was not intended to be overwritten by - # sublasses (but ruby provides no feature to block doing so -- it is already marked as private). + # subclasses (but ruby provides no feature to block doing so -- it is already marked as private). # def current_version_array [ current_resource.version ] diff --git a/lib/chef/provider/package/yum.rb b/lib/chef/provider/package/yum.rb index 863f0da8e0..76b9b15172 100644 --- a/lib/chef/provider/package/yum.rb +++ b/lib/chef/provider/package/yum.rb @@ -100,7 +100,7 @@ class Chef # If this is a package like the kernel that can be installed multiple times, we'll skip over this logic if new_resource.allow_downgrade && version_gt?(iv.version_with_arch, av.version_with_arch) && !python_helper.install_only_packages(name) - # We allow downgrading only in the evenit of single-package + # We allow downgrading only in the event of single-package # rules where the user explicitly allowed it method = "downgrade" end diff --git a/lib/chef/provider/package/yum/yum_cache.rb b/lib/chef/provider/package/yum/yum_cache.rb index cec848dbd9..b65e1e560f 100644 --- a/lib/chef/provider/package/yum/yum_cache.rb +++ b/lib/chef/provider/package/yum/yum_cache.rb @@ -22,7 +22,7 @@ require "singleton" unless defined?(Singleton) # # These are largely historical APIs, the YumCache object no longer exists and this is a -# fascade over the python helper class. It should be considered deprecated-lite and +# facade over the python helper class. It should be considered deprecated-lite and # no new APIs should be added and should be added to the python_helper instead. # diff --git a/lib/chef/provider/remote_directory.rb b/lib/chef/provider/remote_directory.rb index c1d537c8cc..438af967dd 100644 --- a/lib/chef/provider/remote_directory.rb +++ b/lib/chef/provider/remote_directory.rb @@ -147,7 +147,7 @@ class Chef new_resource.updated_by_last_action(true) if res.updated? end - # Get the files to tranfer. This returns files in lexicographical sort order. + # Get the files to transfer. This returns files in lexicographical sort order. # # FIXME: it should do breadth-first, see CHEF-5080 (please use a performant sort) # @@ -245,7 +245,7 @@ class Chef res = Chef::Resource::Directory.new(dir, run_context) res.cookbook_name = resource_cookbook if ChefUtils.windows? && rights - # rights are only meant to be applied to the toppest-level directory; + # rights are only meant to be applied to the highest-level directory; # Windows will handle inheritance. if dir == path rights.each do |r| diff --git a/lib/chef/provider/service/arch.rb b/lib/chef/provider/service/arch.rb index ee6d3dfacd..24064f26ac 100644 --- a/lib/chef/provider/service/arch.rb +++ b/lib/chef/provider/service/arch.rb @@ -42,7 +42,7 @@ class Chef::Provider::Service::Arch < Chef::Provider::Service::Init end # Get list of all daemons from the file '/etc/rc.conf'. - # Mutiple lines and background form are supported. Example: + # Multiple lines and background form are supported. Example: # DAEMONS=(\ # foobar \ # @example \ diff --git a/lib/chef/provider/service/upstart.rb b/lib/chef/provider/service/upstart.rb index 2feb0edd70..5b93e6f5a9 100644 --- a/lib/chef/provider/service/upstart.rb +++ b/lib/chef/provider/service/upstart.rb @@ -41,7 +41,7 @@ class Chef # Upstart does more than start or stop a service, creating multiple 'states' [1] that a service can be in. # In chef, when we ask a service to start, we expect it to have started before performing the next step - # since we have top down dependencies. Which is to say we may follow witha resource next that requires + # since we have top down dependencies. Which is to say we may follow with a resource next that requires # that service to be running. According to [2] we can trust that sending a 'goal' such as start will not # return until that 'goal' is reached, or some error has occurred. # diff --git a/lib/chef/provider/user/aix.rb b/lib/chef/provider/user/aix.rb index f41d0f5067..893f304a96 100644 --- a/lib/chef/provider/user/aix.rb +++ b/lib/chef/provider/user/aix.rb @@ -40,7 +40,7 @@ class Chef shell_out!("userdel", userdel_options, new_resource.username) end - # Aix does not support -r like other unix, sytem account is created by adding to 'system' group + # Aix does not support -r like other unix, system account is created by adding to 'system' group def useradd_options opts = [] opts << "-g" << "system" if new_resource.system diff --git a/lib/chef/provider/user/mac.rb b/lib/chef/provider/user/mac.rb index bc0c067d2f..05684d77d8 100644 --- a/lib/chef/provider/user/mac.rb +++ b/lib/chef/provider/user/mac.rb @@ -102,7 +102,7 @@ class Chef shadow_hash_hex = user_plist[:shadow_hash][0] return unless shadow_hash_hex && shadow_hash_hex != "" - # The password infomation is stored in the ShadowHashData key in the + # The password information is stored in the ShadowHashData key in the # plist. However, parsing it is a bit tricky as the value is itself # another encoded binary plist. We have to extract the encoded plist, # decode it from hex to a binary plist and then convert the binary @@ -116,6 +116,8 @@ class Chef # # eg: # + # spellchecker: disable + # # <array> # <string>77687920 63616e27 74206170 706c6520 6275696c 6420636f 6e736973 74656e74 20746f6f 6c696e67</string> # </array> @@ -126,6 +128,8 @@ class Chef # <data>AADKAAAKAA4LAA0MAAAAAAAAAAA=</data> # </array> # + # spellchecker: disable + # begin shadow_binary_plist = [shadow_hash_hex.delete(" ")].pack("H*") shadow_xml_plist = shell_out("plutil", "-convert", "xml1", "-o", "-", "-", input: shadow_binary_plist).stdout @@ -179,7 +183,7 @@ class Chef end if new_resource.manage_home - # "sydadminctl -addUser" will create the home directory if it's + # "sysadminctl -addUser" will create the home directory if it's # the default /Users/<username>, otherwise it sets it in plist # but does not create it. Here we'll ensure that it gets created # if we've been given a directory that is not the default. @@ -554,7 +558,7 @@ class Chef # 0x0A End of record denoted by \n # 0x5C Escaping is denoted by \ # 0x3A Fields are separated by : - # 0x2C Values are seperated by , + # 0x2C Values are separated by , # dsRecTypeStandard:Users The record type we're configuring # 2 How many properties we're going to set # dsAttrTypeStandard:RecordName Property 1: our users record name @@ -598,7 +602,7 @@ class Chef def run_sysadminctl(args) # sysadminctl doesn't exit with a non-zero code when errors are encountered - # and ouputs everything to STDERR instead of STDOUT and STDERR. Therefore we'll + # and outputs everything to STDERR instead of STDOUT and STDERR. Therefore we'll # return the STDERR and let the caller handle it. shell_out!("sysadminctl", args).stderr end diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb index ff0d338b48..63a7b331e1 100644 --- a/lib/chef/provider/windows_task.rb +++ b/lib/chef/provider/windows_task.rb @@ -72,6 +72,7 @@ class Chef 6 => TaskScheduler::TASK_SIXTH, 7 => TaskScheduler::TASK_SEVENTH, 8 => TaskScheduler::TASK_EIGHTH, + # cspell:disable-next-line 9 => TaskScheduler::TASK_NINETH, 10 => TaskScheduler::TASK_TENTH, 11 => TaskScheduler::TASK_ELEVENTH, @@ -93,6 +94,7 @@ class Chef 27 => TaskScheduler::TASK_TWENTY_SEVENTH, 28 => TaskScheduler::TASK_TWENTY_EIGHTH, 29 => TaskScheduler::TASK_TWENTY_NINTH, + # cspell:disable-next-line 30 => TaskScheduler::TASK_THIRTYETH, 31 => TaskScheduler::TASK_THIRTY_FIRST, }.freeze @@ -229,7 +231,7 @@ class Chef private - # seprated command arguments from :command property + # separated command arguments from :command property def set_command_and_arguments cmd, *args = Chef::Util::PathHelper.split_args(new_resource.command) new_resource.command = cmd @@ -577,7 +579,7 @@ class Chef def logon_type # Ref: https://msdn.microsoft.com/en-us/library/windows/desktop/aa383566(v=vs.85).aspx - # if nothing is passed as logon_type the TASK_LOGON_SERVICE_ACCOUNT is getting set as default so using that for comparision. + # if nothing is passed as logon_type the TASK_LOGON_SERVICE_ACCOUNT is getting set as default so using that for comparison. user_id = new_resource.user.to_s password = new_resource.password.to_s if Chef::ReservedNames::Win32::Security::SID.service_account_user?(user_id) |