Exception: Dependabot::PrivateSourceCertificateFailure

Inherits:
DependabotError
  • Object
show all
Defined in:
lib/dependabot/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ PrivateSourceCertificateFailure

Returns a new instance of PrivateSourceCertificateFailure.


121
122
123
124
# File 'lib/dependabot/errors.rb', line 121

def initialize(source)
  @source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "")
  super("Could not verify the SSL certificate for #{source}")
end

Instance Attribute Details

#sourceObject (readonly)

Returns the value of attribute source


119
120
121
# File 'lib/dependabot/errors.rb', line 119

def source
  @source
end