method

thorfiles

ruby latest stable - Class: Bundler::Thor::Runner

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

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 …

  1. /Users/wycats/dev/thor

  2. /Users/wycats/dev

  3. /Users/wycats <– we find a Bundler::Thorfile here, so we stop

Suppose we start at c:Documents and Settingsjamesdevthor

  1. c:Documents and Settingsjamesdevthor

  2. c:Documents and Settingsjamesdev

  3. c:Documents and Settingsjames

  4. c:Documents and Settings

  5. c:\ <– no Bundler::Thorfiles found!