summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-10-28 13:07:26 -0700
committerTim Smith <tsmith84@gmail.com>2020-10-28 13:07:26 -0700
commitc5dd63dbf320ab2f52fc20df22e2b1ee74b2c946 (patch)
tree6386d85cb2ecf49317c715e2b3cab4cb6a88c903
parent441b47147b73ccaaf0708a7722d5157c4c08023a (diff)
downloadchef-c5dd63dbf320ab2f52fc20df22e2b1ee74b2c946.tar.gz
Add a minor comment explaining why we check file types
Nothing real amazing here. Just a note for future folks. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--chef-config/lib/chef-config/mixin/dot_d.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/chef-config/lib/chef-config/mixin/dot_d.rb b/chef-config/lib/chef-config/mixin/dot_d.rb
index a4347474fe..efe5c957f1 100644
--- a/chef-config/lib/chef-config/mixin/dot_d.rb
+++ b/chef-config/lib/chef-config/mixin/dot_d.rb
@@ -20,6 +20,7 @@ module ChefConfig
module Mixin
module DotD
# Find available configuration files in a `.d/` style include directory.
+ # Make sure we exclude anything that's not a file so we avoid directories ending in .rb (just in case)
#
# @api internal
# @param path [String] Base .d/ path to load from.