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.



124
125
126
127
# File 'lib/dependabot/errors.rb', line 124

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.



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

def source
  @source
end