Exception: Bundler::Fetcher::AuthenticationRequiredError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
::Bundler::HTTPError ,
::Bundler::BundlerError ,
StandardError
|
|
Instance Chain:
self,
::Bundler::HTTPError ,
::Bundler::BundlerError ,
StandardError
|
|
Inherits: |
Bundler::HTTPError
|
Defined in: | lib/bundler/fetcher.rb |
Overview
This error is raised if HTTP authentication is required, but not provided.
Class Method Summary
- .new(remote_uri) ⇒ AuthenticationRequiredError constructor
::Bundler::BundlerError
- Inherited
Instance Method Summary
::Bundler::HTTPError
- Inherited
Constructor Details
.new(remote_uri) ⇒ AuthenticationRequiredError
# File 'lib/bundler/fetcher.rb', line 47
def initialize(remote_uri) remote_uri = filter_uri(remote_uri) super "Authentication is required for #{remote_uri}.\n" \ "Please supply credentials for this source. You can do this by running:\n" \ "`bundle config set --global #{remote_uri} username:password`\n" \ "or by storing the credentials in the `#{Settings.key_for(remote_uri)}` environment variable" end