Exception: Dependabot::PrivateSourceAuthenticationFailure
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateSourceAuthenticationFailure
- Defined in:
- lib/dependabot/errors.rb
Overview
Source level errors #
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ PrivateSourceAuthenticationFailure
constructor
A new instance of PrivateSourceAuthenticationFailure.
Constructor Details
#initialize(source) ⇒ PrivateSourceAuthenticationFailure
Returns a new instance of PrivateSourceAuthenticationFailure.
100 101 102 103 104 105 106 |
# File 'lib/dependabot/errors.rb', line 100 def initialize(source) @source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "") msg = "The following source could not be reached as it requires "\ "authentication (and any provided details were invalid or lacked "\ "the required permissions): #{source}" super(msg) end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
98 99 100 |
# File 'lib/dependabot/errors.rb', line 98 def source @source end |