class method
Gem::BundlerVersionFinder.bundler_config_file
bundler_config_file
lib/rubygems/bundler_version_finder.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/bundler_version_finder.rb, line 95
def self.bundler_config_file
# see Bundler::Settings#global_config_file and local_config_file
# global
if ENV["BUNDLE_CONFIG"] && !ENV["BUNDLE_CONFIG"].empty?
ENV["BUNDLE_CONFIG"]
elsif ENV["BUNDLE_USER_CONFIG"] && !ENV["BUNDLE_USER_CONFIG"].empty?
ENV["BUNDLE_USER_CONFIG"]
elsif ENV["BUNDLE_USER_HOME"] && !ENV["BUNDLE_USER_HOME"].empty?
ENV["BUNDLE_USER_HOME"] + "config"
elsif Gem.user_home && !Gem.user_home.empty?
Gem.user_home + ".bundle/config"
else
# local
"config"
end
end
No documentation available