Class: Bundler::Source::Rubygems::Remote

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/source/rubygems/remote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_uriObject (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

#uriObject (readonly)

Returns the value of attribute uri.



5
6
7
# File 'lib/bundler/source/rubygems/remote.rb', line 5

def uri
  @uri
end