diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-04-06 22:14:39 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2020-04-06 22:46:26 +0530 |
commit | a1bf06c753173ac698d9329a09c6edba6c18c781 (patch) | |
tree | dcc0cfe7d4c533fc1d73d1cbd01dbf1decc202ef /lib/chef/mixin | |
parent | bd19ff3749e935524a512667f41bb4fe5667be01 (diff) | |
download | chef-a1bf06c753173ac698d9329a09c6edba6c18c781.tar.gz |
Fix typo
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/api_version_request_handling.rb | 6 | ||||
-rw-r--r-- | lib/chef/mixin/lazy_module_include.rb | 2 | ||||
-rw-r--r-- | lib/chef/mixin/openssl_helper.rb | 4 | ||||
-rw-r--r-- | lib/chef/mixin/securable.rb | 2 | ||||
-rw-r--r-- | lib/chef/mixin/shell_out.rb | 2 |
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/chef/mixin/api_version_request_handling.rb b/lib/chef/mixin/api_version_request_handling.rb index 776190f3a4..f85631a145 100644 --- a/lib/chef/mixin/api_version_request_handling.rb +++ b/lib/chef/mixin/api_version_request_handling.rb @@ -19,16 +19,16 @@ class Chef module Mixin module ApiVersionRequestHandling - # @param exeception [Net::HTTPClientException] may or may not contain the x-ops-server-api-version header + # @param exception [Net::HTTPClientException] may or may not contain the x-ops-server-api-version header # supported_client_versions: # @param supported_client_versions [Array<Integer>] The API versions the client supports. # # Output: # nil: - # If the execption was not a 406 or the server does not support versioning + # If the exception was not a 406 or the server does not support versioning # Array of length zero: # If there was no intersection between supported client versions and supported server versions - # Arrary of Integers: + # Array of Integers: # If there was an intersection of supported versions, the array returns will contain that intersection def server_client_api_version_intersection(exception, supported_client_versions) # return empty array unless 406 Unacceptable with proper header diff --git a/lib/chef/mixin/lazy_module_include.rb b/lib/chef/mixin/lazy_module_include.rb index 4989493d9c..3e2b9307a9 100644 --- a/lib/chef/mixin/lazy_module_include.rb +++ b/lib/chef/mixin/lazy_module_include.rb @@ -43,7 +43,7 @@ class Chef # module LazyModuleInclude - # Most of the magick is in this hook which creates a closure over the parent class and then builds an + # Most of the magic is in this hook which creates a closure over the parent class and then builds an # "infector" module which infects all descendants and which is responsible for updating the list of # descendants in the parent class. def included(klass) diff --git a/lib/chef/mixin/openssl_helper.rb b/lib/chef/mixin/openssl_helper.rb index a9201d8637..5ecb07d475 100644 --- a/lib/chef/mixin/openssl_helper.rb +++ b/lib/chef/mixin/openssl_helper.rb @@ -337,13 +337,13 @@ class Chef end # add a serial given in the crl given - # @param [Hash] revoke_info serial to revoke & revokation reason + # @param [Hash] revoke_info serial to revoke & revocation reason # @param [OpenSSL::X509::CRL] crl X509 CRL # @param [OpenSSL::PKey::EC, OpenSSL::PKey::RSA] ca_private_key private key from the CA # @param [Hash] info issuer & validity # @return [OpenSSL::X509::CRL] def revoke_x509_crl(revoke_info, crl, ca_private_key, info) - raise TypeError, "revoke_info must be a Ruby Hash oject" unless revoke_info.is_a?(Hash) + raise TypeError, "revoke_info must be a Ruby Hash object" unless revoke_info.is_a?(Hash) raise TypeError, "crl must be a Ruby OpenSSL::X509::CRL object" unless crl.is_a?(::OpenSSL::X509::CRL) raise TypeError, "ca_private_key must be a Ruby OpenSSL::PKey::EC object or a Ruby OpenSSL::PKey::RSA object" unless ca_private_key.is_a?(::OpenSSL::PKey::EC) || ca_private_key.is_a?(::OpenSSL::PKey::RSA) raise TypeError, "info must be a Ruby Hash" unless info.is_a?(Hash) diff --git a/lib/chef/mixin/securable.rb b/lib/chef/mixin/securable.rb index e6dd5043c8..d783bc9d0b 100644 --- a/lib/chef/mixin/securable.rb +++ b/lib/chef/mixin/securable.rb @@ -97,7 +97,7 @@ class Chef # # * `:permissions`: Integer of Windows permissions flags, 1..2^32 # or one of `[:full_control, :modify, :read_execute, :read, :write]` - # * `:principals`: String or Array of Strings represnting usernames on + # * `:principals`: String or Array of Strings representing usernames on # the system. # * `:applies_to_children` (optional): Boolean # * `:applies_to_self` (optional): Boolean diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb index 658442fd6d..161699805a 100644 --- a/lib/chef/mixin/shell_out.rb +++ b/lib/chef/mixin/shell_out.rb @@ -27,7 +27,7 @@ class Chef # all consumers should now call shell_out!/shell_out. # # the shell_out_compacted/shell_out_compacted! APIs are private but are intended for use - # in rspec tests, and should ideally always be used to make code refactorings that do not + # in rspec tests, and should ideally always be used to make code refactoring that do not # change behavior easier: # # allow(provider).to receive(:shell_out_compacted!).with("foo", "bar", "baz") |