summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook_version.rb
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2014-10-04 15:02:41 -0700
committerNoah Kantrowitz <noah@coderanger.net>2014-10-04 15:02:41 -0700
commit41ff78b4088c4687637a1433dc1a17fc00a5523f (patch)
tree1e38b04f0570fe56244bd724e713304403e4c6cf /lib/chef/cookbook_version.rb
parentbf67ebfa4881adda2a596bbc8be64f538af1873c (diff)
downloadchef-41ff78b4088c4687637a1433dc1a17fc00a5523f.tar.gz
Add clarifying comment.
Diffstat (limited to 'lib/chef/cookbook_version.rb')
-rw-r--r--lib/chef/cookbook_version.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/cookbook_version.rb b/lib/chef/cookbook_version.rb
index 9068b66082..d76ec2b163 100644
--- a/lib/chef/cookbook_version.rb
+++ b/lib/chef/cookbook_version.rb
@@ -327,6 +327,7 @@ class Chef
end
error_message << error_locations.join("\n")
existing_files = segment_filenames(segment)
+ # Strip the root_dir prefix off all files for readability
existing_files.map!{|path| path[root_dir.length+1..-1]} if root_dir
# Show the files that the cookbook does have. If the user made a typo,
# hopefully they'll see it here.