Class: Dependabot::Composer::FileFetcher

Inherits:
FileFetchers::Base
  • Object
show all
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

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)

12
13
14
# File 'lib/dependabot/composer/file_fetcher.rb', line 12

def self.required_files_in?(filenames)
  filenames.include?("composer.json")
end

.required_files_messageObject


16
17
18
# File 'lib/dependabot/composer/file_fetcher.rb', line 16

def self.required_files_message
  "Repo must contain a composer.json."
end