Class: Bundler::Source::Rubygems::Remote
- Inherits:
-
Object
- Object
- Bundler::Source::Rubygems::Remote
- Defined in:
- lib/bundler/source/rubygems/remote.rb
Instance Attribute Summary collapse
-
#anonymized_uri ⇒ Object
readonly
Returns the value of attribute anonymized_uri.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ Remote
constructor
A new instance of Remote.
Constructor Details
#initialize(uri) ⇒ Remote
Returns a new instance of Remote.
8 9 10 11 12 13 14 |
# File 'lib/bundler/source/rubygems/remote.rb', line 8 def initialize(uri) uri = Bundler.settings.mirror_for(uri) fallback_auth = Bundler.settings.credentials_for(uri) @uri = apply_auth(uri, fallback_auth).freeze @anonymized_uri = remove_auth(@uri).freeze end |
Instance Attribute Details
#anonymized_uri ⇒ Object (readonly)
Returns the value of attribute anonymized_uri.
5 6 7 |
# File 'lib/bundler/source/rubygems/remote.rb', line 5 def anonymized_uri @anonymized_uri end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
5 6 7 |
# File 'lib/bundler/source/rubygems/remote.rb', line 5 def uri @uri end |