Class: Dependabot::FileParsers::Base
- Inherits:
-
Object
- Object
- Dependabot::FileParsers::Base
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/dependabot/file_parsers/base.rb,
lib/dependabot/file_parsers/base/dependency_set.rb
Defined Under Namespace
Classes: DependencySet
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependency_files ⇒ Object
readonly
Returns the value of attribute dependency_files.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#repo_contents_path ⇒ Object
readonly
Returns the value of attribute repo_contents_path.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
- #dealias_packages! ⇒ Object
- #ecosystem ⇒ Object
-
#initialize(dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {}) ⇒ Base
constructor
A new instance of Base.
- #parse ⇒ Object
- #reject_external_code? ⇒ Boolean
- #run_in_parsed_context(_command) ⇒ Object
Constructor Details
#initialize(dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {}) ⇒ Base
Returns a new instance of Base.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/dependabot/file_parsers/base.rb', line 47 def initialize( dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {} ) @dependency_files = dependency_files @repo_contents_path = repo_contents_path @credentials = credentials @source = source @reject_external_code = reject_external_code @options = check_required_files end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
23 24 25 |
# File 'lib/dependabot/file_parsers/base.rb', line 23 def credentials @credentials end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
17 18 19 |
# File 'lib/dependabot/file_parsers/base.rb', line 17 def dependency_files @dependency_files end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
29 30 31 |
# File 'lib/dependabot/file_parsers/base.rb', line 29 def @options end |
#repo_contents_path ⇒ Object (readonly)
Returns the value of attribute repo_contents_path.
20 21 22 |
# File 'lib/dependabot/file_parsers/base.rb', line 20 def repo_contents_path @repo_contents_path end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
26 27 28 |
# File 'lib/dependabot/file_parsers/base.rb', line 26 def source @source end |
Instance Method Details
#dealias_packages! ⇒ Object
93 94 95 |
# File 'lib/dependabot/file_parsers/base.rb', line 93 def dealias_packages! [:dealias_packages] = true end |
#ecosystem ⇒ Object
69 70 71 |
# File 'lib/dependabot/file_parsers/base.rb', line 69 def ecosystem nil end |
#parse ⇒ Object
66 |
# File 'lib/dependabot/file_parsers/base.rb', line 66 def parse; end |
#reject_external_code? ⇒ Boolean
32 33 34 |
# File 'lib/dependabot/file_parsers/base.rb', line 32 def reject_external_code? @reject_external_code end |
#run_in_parsed_context(_command) ⇒ Object
85 86 87 |
# File 'lib/dependabot/file_parsers/base.rb', line 85 def run_in_parsed_context(_command) raise Dependabot::NotImplemented, "No run_parsed_context utility method is provided for this ecosystem." end |