Class: Dependabot::Composer::FileFetcher
- Inherits:
-
FileFetchers::Base
- Object
- FileFetchers::Base
- Dependabot::Composer::FileFetcher
show all
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/dependabot/composer/file_fetcher.rb,
lib/dependabot/composer/file_fetcher/path_dependency_builder.rb
Defined Under Namespace
Classes: PathDependencyBuilder
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.required_files_in?(filenames) ⇒ Boolean
18
19
20
|
# File 'lib/dependabot/composer/file_fetcher.rb', line 18
def self.required_files_in?(filenames)
filenames.include?("composer.json")
end
|
.required_files_message ⇒ Object
22
23
24
|
# File 'lib/dependabot/composer/file_fetcher.rb', line 22
def self.required_files_message
"Repo must contain a composer.json."
end
|
Instance Method Details
#ecosystem_versions ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/dependabot/composer/file_fetcher.rb', line 26
def ecosystem_versions
{
package_managers: {
"composer" => Helpers.composer_version(parsed_composer_json, parsed_lockfile) || "unknown"
}
}
end
|
#fetch_files ⇒ Object
35
36
37
38
39
40
41
42
43
|
# File 'lib/dependabot/composer/file_fetcher.rb', line 35
def fetch_files
fetched_files = []
fetched_files << composer_json
fetched_files << composer_lock if composer_lock
fetched_files << auth_json if auth_json
fetched_files += artifact_dependencies
fetched_files += path_dependencies
fetched_files
end
|