Class: Dependabot::Maven::FileFetcher

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

Constant Summary collapse

MODULE_SELECTOR =
"project > modules > module, "\
"profile > modules > module"

Class Method Summary collapse

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.required_files_in?(filenames)
  (%w(pom.xml) - filenames).empty?
end

.required_files_messageObject



17
18
19
# File 'lib/dependabot/maven/file_fetcher.rb', line 17

def self.required_files_message
  "Repo must contain a pom.xml."
end