Class: Dependabot::Maven::FileFetcher
- Inherits:
-
FileFetchers::Base
- Object
- FileFetchers::Base
- Dependabot::Maven::FileFetcher
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/dependabot/maven/file_fetcher.rb
Constant Summary collapse
- MODULE_SELECTOR =
"project > modules > module, " \ "profile > modules > module"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.required_files_in?(filenames) ⇒ Boolean
20 21 22 |
# File 'lib/dependabot/maven/file_fetcher.rb', line 20 def self.required_files_in?(filenames) filenames.include?("pom.xml") end |
.required_files_message ⇒ Object
25 26 27 |
# File 'lib/dependabot/maven/file_fetcher.rb', line 25 def self. "Repo must contain a pom.xml." end |
Instance Method Details
#fetch_files ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/dependabot/maven/file_fetcher.rb', line 30 def fetch_files fetched_files = [] fetched_files << pom fetched_files += child_poms fetched_files += relative_path_parents(fetched_files) fetched_files << extensions if extensions fetched_files.uniq end |