This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
thorfiles_relevant_to(meth)
private
Load Bundler::Thorfiles relevant to the given method. If you provide
“foo:bar” it will load all thor files in the thor.yaml that has
“foo” e “foo:bar” namespaces registered.
# File lib/bundler/vendor/thor/lib/thor/runner.rb, line 265
def thorfiles_relevant_to(meth)
lookup = [meth, meth.split(":")[0...-1].join(":")]
files = thor_yaml.select do |_, v|
v[:namespaces] && !(v[:namespaces] & lookup).empty?
end
files.map { |_, v| File.join(thor_root, (v[:filename]).to_s) }
end