Class: Dependabot::FileFetchers::Elm::ElmPackage

Inherits:
Base
  • Object
show all
Defined in:
lib/dependabot/file_fetchers/elm/elm_package.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
12
13
# File 'lib/dependabot/file_fetchers/elm/elm_package.rb', line 9

def self.required_files_in?(filenames)
  return true if filenames.include?("elm-package.json")

  filenames.include?("elm.json")
end

.required_files_messageObject



15
16
17
# File 'lib/dependabot/file_fetchers/elm/elm_package.rb', line 15

def self.required_files_message
  "Repo must contain an elm-package.json or an elm.json"
end