Class: Dependabot::Python::FileUpdater::PoetryFileUpdater

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(dependencies:, dependency_files:, credentials:, cooldown: nil) ⇒ PoetryFileUpdater

Returns a new instance of PoetryFileUpdater.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 44

def initialize(dependencies:, dependency_files:, credentials:, cooldown: nil)
  @dependencies = dependencies
  @dependency_files = dependency_files
  @credentials = credentials
  @cooldown = T.let(cooldown, T.nilable(Dependabot::Package::ReleaseCooldownOptions))
  @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

#credentialsObject (readonly)

Returns the value of attribute credentials.



31
32
33
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 31

def credentials
  @credentials
end

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



34
35
36
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 34

def dependencies
  @dependencies
end

#dependency_filesObject (readonly)

Returns the value of attribute dependency_files.



28
29
30
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 28

def dependency_files
  @dependency_files
end

Instance Method Details

#updated_dependency_filesObject



62
63
64
# File 'lib/dependabot/python/file_updater/poetry_file_updater.rb', line 62

def updated_dependency_files
  @updated_dependency_files ||= fetch_updated_dependency_files
end