Exception: Dependabot::GitDependenciesNotReachable

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

Overview

Dependency level errors #

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*dependency_urls) ⇒ GitDependenciesNotReachable

Returns a new instance of GitDependenciesNotReachable.


147
148
149
150
151
152
153
154
# File 'lib/dependabot/errors.rb', line 147

def initialize(*dependency_urls)
  @dependency_urls =
    dependency_urls.flatten.map { |uri| uri.gsub(/x-access-token.*[email protected]/, "") }

  msg = "The following git URLs could not be retrieved: "\
        "#{dependency_urls.join(', ')}"
  super(msg)
end

Instance Attribute Details

#dependency_urlsObject (readonly)

Returns the value of attribute dependency_urls


145
146
147
# File 'lib/dependabot/errors.rb', line 145

def dependency_urls
  @dependency_urls
end