Class: Dependabot::FileUpdaters::Base
- Inherits:
-
Object
- Object
- Dependabot::FileUpdaters::Base
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/dependabot/file_updaters/base.rb
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dependencies:, dependency_files:, credentials:, repo_contents_path: nil, options: {}) ⇒ Base
constructor
A new instance of Base.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:, repo_contents_path: nil, options: {}) ⇒ Base
Returns a new instance of Base.
45 46 47 48 49 50 51 52 53 |
# File 'lib/dependabot/file_updaters/base.rb', line 45 def initialize(dependencies:, dependency_files:, credentials:, repo_contents_path: nil, options: {}) @dependencies = dependencies @dependency_files = dependency_files @repo_contents_path = repo_contents_path @credentials = credentials @options = check_required_files end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
26 27 28 |
# File 'lib/dependabot/file_updaters/base.rb', line 26 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
17 18 19 |
# File 'lib/dependabot/file_updaters/base.rb', line 17 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
20 21 22 |
# File 'lib/dependabot/file_updaters/base.rb', line 20 def dependency_files @dependency_files end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
29 30 31 |
# File 'lib/dependabot/file_updaters/base.rb', line 29 def @options end |
#repo_contents_path ⇒ Object (readonly)
Returns the value of attribute repo_contents_path.
23 24 25 |
# File 'lib/dependabot/file_updaters/base.rb', line 23 def repo_contents_path @repo_contents_path end |
Class Method Details
.updated_files_regex ⇒ Object
32 33 34 |
# File 'lib/dependabot/file_updaters/base.rb', line 32 def self.updated_files_regex raise NotImplementedError end |
Instance Method Details
#updated_dependency_files ⇒ Object
56 57 58 |
# File 'lib/dependabot/file_updaters/base.rb', line 56 def updated_dependency_files raise NotImplementedError end |