Class: Dependabot::GoModules::FileFetcher

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

Class Method Summary collapse

Class Method Details

.required_files_in?(filenames) ⇒ Boolean


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

def self.required_files_in?(filenames)
  filenames.include?("go.mod")
end

.required_files_messageObject


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

def self.required_files_message
  "Repo must contain a go.mod."
end