Class: Dependabot::GitSubmodules::FileFetcher

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

Class Method Summary collapse

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)

11
12
13
# File 'lib/dependabot/git_submodules/file_fetcher.rb', line 11

def self.required_files_in?(filenames)
  filenames.include?(".gitmodules")
end

.required_files_messageObject


15
16
17
# File 'lib/dependabot/git_submodules/file_fetcher.rb', line 15

def self.required_files_message
  "Repo must contain a .gitmodules file."
end