Exception: Dependabot::PrivateSourceCertificateFailure
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateSourceCertificateFailure
- Defined in:
- lib/dependabot/errors.rb
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ PrivateSourceCertificateFailure
constructor
A new instance of PrivateSourceCertificateFailure.
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
#source ⇒ Object (readonly)
Returns the value of attribute source.
119 120 121 |
# File 'lib/dependabot/errors.rb', line 119 def source @source end |