Exception: Dependabot::PrivateSourceTimedOut
- Inherits:
-
DependabotError
- Object
- StandardError
- DependabotError
- Dependabot::PrivateSourceTimedOut
- 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) ⇒ PrivateSourceTimedOut
constructor
A new instance of PrivateSourceTimedOut.
Constructor Details
#initialize(source) ⇒ PrivateSourceTimedOut
Returns a new instance of PrivateSourceTimedOut.
112 113 114 115 |
# File 'lib/dependabot/errors.rb', line 112 def initialize(source) @source = source.gsub(%r{(?<=\.fury\.io)/[A-Za-z0-9]{20}(?=/)}, "") super("The following source timed out: #{source}") end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
110 111 112 |
# File 'lib/dependabot/errors.rb', line 110 def source @source end |