Class: Dependabot::FileFetchers::Php::Composer

Inherits:
Base
  • Object
show all
Defined in:
lib/dependabot/file_fetchers/php/composer.rb

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)


9
10
11
# File 'lib/dependabot/file_fetchers/php/composer.rb', line 9

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

.required_files_messageObject



13
14
15
# File 'lib/dependabot/file_fetchers/php/composer.rb', line 13

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