Class: Dependabot::FileFetchers::Elixir::Hex
- Defined in:
- lib/dependabot/file_fetchers/elixir/hex.rb
Constant Summary collapse
- APPS_PATH_REGEX =
/apps_path:\s*"(?<path>.*?)"/m.freeze
- STRING_ARG =
%{(?:["'](.*?)["'])}
- EVAL_FILE =
/Code\.eval_file\(#{STRING_ARG}(?:\s*,\s*#{STRING_ARG})?\)/. freeze
Instance Attribute Summary
Attributes inherited from Base
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
14 15 16 |
# File 'lib/dependabot/file_fetchers/elixir/hex.rb', line 14 def self.required_files_in?(filenames) filenames.include?("mix.exs") end |
.required_files_message ⇒ Object
18 19 20 |
# File 'lib/dependabot/file_fetchers/elixir/hex.rb', line 18 def self. "Repo must contain a mix.exs." end |