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/cookbook | |
parent | bd19ff3749e935524a512667f41bb4fe5667be01 (diff) | |
download | chef-a1bf06c753173ac698d9329a09c6edba6c18c781.tar.gz |
Fix typo
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r-- | lib/chef/cookbook/cookbook_version_loader.rb | 6 | ||||
-rw-r--r-- | lib/chef/cookbook/metadata.rb | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/cookbook/cookbook_version_loader.rb b/lib/chef/cookbook/cookbook_version_loader.rb index 2c4fe6db41..79aa8d9708 100644 --- a/lib/chef/cookbook/cookbook_version_loader.rb +++ b/lib/chef/cookbook/cookbook_version_loader.rb @@ -21,7 +21,7 @@ require "find" class Chef class Cookbook - # This class is only used drectly from the Chef::CookbookLoader and from chef-fs, + # This class is only used directly from the Chef::CookbookLoader and from chef-fs, # so it only affects legacy-mode chef-client runs and knife. It is not used by # server or zolo/zero modes. # @@ -220,7 +220,7 @@ class Chef # Use Find.find because it: # (a) returns any children, recursively # (b) includes top_path as well - # (c) skips symlinks, which is backcompat (no judgement on whether it was *right*) + # (c) skips symlinks, which is backcompat (no judgment on whether it was *right*) Find.find(top_path) do |path| # Only add files, not directories next unless File.file?(path) @@ -257,7 +257,7 @@ class Chef def apply_json_cookbook_version_metadata(file) data = Chef::JSONCompat.parse(IO.read(file)) @metadata.from_hash(data["metadata"]) - # the JSON cookbok metadata file is only used by chef-zero. + # the JSON cookbook metadata file is only used by chef-zero. # The Chef Server API currently does not enforce that the metadata # have a `name` field, but that will cause an error when attempting # to load the cookbook. To keep compatibility, we fake it by setting diff --git a/lib/chef/cookbook/metadata.rb b/lib/chef/cookbook/metadata.rb index d924be0c85..4ed9c38689 100644 --- a/lib/chef/cookbook/metadata.rb +++ b/lib/chef/cookbook/metadata.rb @@ -406,8 +406,8 @@ class Chef # Convert an Array of Gem::Dependency objects (chef_version/ohai_version) to an Array. # - # Gem::Dependencey#to_s is not useful, and there is no #to_json defined on it or its component - # objets, so we have to write our own rendering method. + # Gem::Dependency#to_s is not useful, and there is no #to_json defined on it or its component + # objects, so we have to write our own rendering method. # # [ Gem::Dependency.new(">= 12.5"), Gem::Dependency.new(">= 11.18.0", "< 12.0") ] # |