class Bundler::Fetcher

def use_api

def use_api
  return @use_api if defined?(@use_api)
  fetchers.shift until fetchers.first.available?
  @use_api = if remote_uri.scheme == "file" || Bundler::Fetcher.disable_endpoint
    false
  else
    fetchers.first.api_fetcher?
  end
end