method
available?
v2_6_3 -
Show latest stable
- Class:
Bundler::Fetcher::Dependency
available?()public
No documentation available.
# File lib/bundler/fetcher/dependency.rb, line 9
def available?
@available ||= fetch_uri.scheme != "file" && downloader.fetch(dependency_api_uri)
rescue NetworkDownError => e
raise HTTPError, e.message
rescue AuthenticationRequiredError
# Fail since we got a 401 from the server.
raise
rescue HTTPError
false
end