Class: Dependabot::Dep::FileFetcher

Inherits:
FileFetchers::Base
  • Object
show all
Defined in:
lib/dependabot/dep/file_fetcher.rb

Class Method Summary collapse

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/dependabot/dep/file_fetcher.rb', line 9

def self.required_files_in?(filenames)
  (%w(Gopkg.toml Gopkg.lock) - filenames).empty?
end

.required_files_messageObject



13
14
15
# File 'lib/dependabot/dep/file_fetcher.rb', line 13

def self.required_files_message
  "Repo must contain a Gopkg.toml and Gopkg.lock."
end