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/cookbook_version.rb | |
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/cookbook_version.rb')
-rw-r--r-- | lib/chef/cookbook_version.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb index 12adb50b4c..2e9bb77151 100644 --- a/lib/chef/cookbook_version.rb +++ b/lib/chef/cookbook_version.rb @@ -358,7 +358,7 @@ class Chef # extract the preference part from the path. if manifest_record_path =~ %r{(#{Regexp.escape(segment.to_s)}/[^/]+/#{Regexp.escape(dirname)})/.+$} - # Note the specificy_dirname includes the segment and + # Note the specificity_dirname includes the segment and # dirname argument as above, which is what # preferences_for_path returns. It could be # "files/ubuntu-9.10/dirname", for example. @@ -566,7 +566,7 @@ class Chef def find_preferred_manifest_record(node, segment, filename) preferences = preferences_for_path(node, segment, filename) - # in order of prefernce, look for the filename in the manifest + # in order of preference, look for the filename in the manifest preferences.find { |preferred_filename| manifest_records_by_path[preferred_filename] } end |