Class: Dependabot::Python::FileUpdater::RequirementFileUpdater
- Inherits:
-
Object
- Object
- Dependabot::Python::FileUpdater::RequirementFileUpdater
- Defined in:
- lib/dependabot/python/file_updater/requirement_file_updater.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.
Instance Method Summary collapse
-
#initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) ⇒ RequirementFileUpdater
constructor
A new instance of RequirementFileUpdater.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) ⇒ RequirementFileUpdater
Returns a new instance of RequirementFileUpdater.
19 20 21 22 23 24 |
# File 'lib/dependabot/python/file_updater/requirement_file_updater.rb', line 19 def initialize(dependencies:, dependency_files:, credentials:, index_urls: nil) @dependencies = dependencies @dependency_files = dependency_files @credentials = credentials @index_urls = index_urls end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
17 18 19 |
# File 'lib/dependabot/python/file_updater/requirement_file_updater.rb', line 17 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
15 16 17 |
# File 'lib/dependabot/python/file_updater/requirement_file_updater.rb', line 15 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
16 17 18 |
# File 'lib/dependabot/python/file_updater/requirement_file_updater.rb', line 16 def dependency_files @dependency_files end |
Instance Method Details
#updated_dependency_files ⇒ Object
26 27 28 |
# File 'lib/dependabot/python/file_updater/requirement_file_updater.rb', line 26 def updated_dependency_files @updated_dependency_files ||= fetch_updated_dependency_files end |