Load the Bundler::Thorfiles. If relevant_to is supplied, looks for specific
files in the thor_root
instead of loading them all.
By default, it also traverses the current path until find Bundler::Thor files, as described in thorfiles. This look up can
be skipped by supplying skip_lookup true.
# File lib/bundler/vendor/thor/lib/thor/runner.rb, line 214
def initialize_thorfiles(relevant_to = nil, skip_lookup = false)
thorfiles(relevant_to, skip_lookup).each do |f|
Bundler::Thor::Util.load_thorfile(f, nil, options[:debug]) unless Bundler::Thor::Base.subclass_files.keys.include?(File.expand_path(f))
end
end