Class: Dependabot::Terraform::FileFetcher

Inherits:
FileFetchers::Base
  • Object
show all
Defined in:
lib/dependabot/terraform/file_fetcher.rb

Class Method Summary collapse

Class Method Details

.required_files_in?(filenames) ⇒ Boolean

Returns:

  • (Boolean)

9
10
11
# File 'lib/dependabot/terraform/file_fetcher.rb', line 9

def self.required_files_in?(filenames)
  filenames.any? { |f| f.end_with?(".tf", ".tfvars") }
end

.required_files_messageObject


13
14
15
# File 'lib/dependabot/terraform/file_fetcher.rb', line 13

def self.required_files_message
  "Repo must contain a Terraform configuration file."
end