Class: Dependabot::FileFetchers::Java::Maven

Inherits:
Base
  • Object
show all
Defined in:
lib/dependabot/file_fetchers/java/maven.rb

Constant Summary collapse

MODULE_SELECTOR =
"project > modules > module"

Instance Attribute Summary

Attributes inherited from Base

#credentials, #source

Class Method Summary collapse

Methods inherited from Base

#commit, #directory, #files, #initialize, #repo, #target_branch

Constructor Details

This class inherits a constructor from Dependabot::FileFetchers::Base

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/dependabot/file_fetchers/java/maven.rb', line 12

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

.required_files_messageObject



16
17
18
# File 'lib/dependabot/file_fetchers/java/maven.rb', line 16

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