thorfiles(relevant_to = nil, skip_lookup = false)private
Finds Bundler::Thorfiles by traversing from your current directory down to the root directory of your system. If at any time we find a Bundler::Thor file, we stop.
We also ensure that system-wide Bundler::Thorfiles are loaded first, so local Bundler::Thorfiles can override them.
Example
If we start at /Users/wycats/dev/thor …
-
/Users/wycats/dev/thor
-
/Users/wycats/dev
-
/Users/wycats <– we find a Bundler::Thorfile here, so we stop
Suppose we start at c:Documents and Settingsjamesdevthor …
-
c:Documents and Settingsjamesdevthor
-
c:Documents and Settingsjamesdev
-
c:Documents and Settingsjames
-
c:Documents and Settings
-
c:\ <– no Bundler::Thorfiles found!