Class: BundlerPatch::UriResolver

Inherits:
Object
  • Object
show all
Extended by:
CredentialFile
Defined in:
lib/bundler-pgs/bundler_patch.rb

Class Method Summary collapse

Methods included from CredentialFile

with_credential_file

Class Method Details

.resolve(uri) ⇒ Object



37
38
39
40
41
42
43
44
45
# File 'lib/bundler-pgs/bundler_patch.rb', line 37

def self.resolve(uri)
  if uri_with_hidden_credentials?(uri)
    new_uri = uri_with_credentials(uri)
    Bundler.ui.debug "[bundler-pgs] uri with credentials: '#{new_uri}'"
    new_uri
  else
    uri
  end
end