Exception: Dependabot::PrivateSourceTimedOut

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source) ⇒ PrivateSourceTimedOut

Returns a new instance of PrivateSourceTimedOut.



113
114
115
116
# File 'lib/dependabot/errors.rb', line 113

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

#sourceObject (readonly)

Returns the value of attribute source.



111
112
113
# File 'lib/dependabot/errors.rb', line 111

def source
  @source
end