Flowdock
method

thorfiles

Importance_2
v2_6_3 - Show latest stable - 0 notes - Class: Runner
  • 1_8_6_287
  • 1_8_7_72
  • 1_8_7_330
  • 1_9_1_378
  • 1_9_2_180
  • 1_9_3_125
  • 1_9_3_392
  • 2_1_10
  • 2_2_9
  • 2_4_6
  • 2_5_5
  • 2_6_3 (0)
  • What's this?
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!

Show source
Register or log in to add new notes.