Class: Dependabot::Python::FileUpdater::PoetryFileUpdater
- Inherits:
-
Object
- Object
- Dependabot::Python::FileUpdater::PoetryFileUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/python/file_updater/poetry_file_updater.rb,
lib/dependabot/python/file_updater/poetry_file_updater/pep621_updater.rb
Defined Under Namespace
Classes: Pep621Updater
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:, cooldown: nil) ⇒ PoetryFileUpdater
constructor
A new instance of PoetryFileUpdater.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:, cooldown: nil) ⇒ PoetryFileUpdater
Returns a new instance of PoetryFileUpdater.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 54 def initialize(dependencies:, dependency_files:, credentials:, cooldown: nil) @dependencies = dependencies @dependency_files = dependency_files @credentials = credentials @cooldown = cooldown @updated_dependency_files = T.let(nil, T.nilable(T::Array[Dependabot::DependencyFile])) @prepared_pyproject = T.let(nil, T.nilable(String)) @pyproject = T.let(nil, T.nilable(Dependabot::DependencyFile)) @lockfile = T.let(nil, T.nilable(Dependabot::DependencyFile)) @updated_lockfile_content = T.let(nil, T.nilable(String)) @language_version_manager = T.let(nil, T.nilable(LanguageVersionManager)) @python_requirement_parser = T.let(nil, T.nilable(FileParser::PythonRequirementParser)) @updated_pyproject_content = T.let(nil, T.nilable(String)) @poetry_plugin_installer = T.let(nil, T.nilable(PoetryPluginInstaller)) @poetry_lock = T.let(nil, T.nilable(Dependabot::DependencyFile)) end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
41 42 43 |
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 41 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
44 45 46 |
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 44 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
38 39 40 |
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 38 def dependency_files @dependency_files end |
Instance Method Details
#updated_dependency_files ⇒ Object
72 73 74 |
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 72 def updated_dependency_files @updated_dependency_files ||= fetch_updated_dependency_files end |