Class: Dependabot::Python::FileUpdater::PipCompileFileUpdater
- Inherits:
-
Object
- Object
- Dependabot::Python::FileUpdater::PipCompileFileUpdater
- Defined in:
- lib/dependabot/python/file_updater/pip_compile_file_updater.rb
Overview
rubocop:disable Metrics/ClassLength
Constant Summary collapse
- UNSAFE_PACKAGES =
%w(setuptools distribute pip).freeze
- WARNINGS =
/\s*# WARNING:.*\Z/m.freeze
- UNSAFE_NOTE =
/\s*# The following packages are considered to be unsafe.*\Z/m.freeze
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:) ⇒ PipCompileFileUpdater
constructor
A new instance of PipCompileFileUpdater.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:) ⇒ PipCompileFileUpdater
Returns a new instance of PipCompileFileUpdater.
31 32 33 34 35 |
# File 'lib/dependabot/python/file_updater/pip_compile_file_updater.rb', line 31 def initialize(dependencies:, dependency_files:, credentials:) @dependencies = dependencies @dependency_files = dependency_files @credentials = credentials end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
29 30 31 |
# File 'lib/dependabot/python/file_updater/pip_compile_file_updater.rb', line 29 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
29 30 31 |
# File 'lib/dependabot/python/file_updater/pip_compile_file_updater.rb', line 29 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
29 30 31 |
# File 'lib/dependabot/python/file_updater/pip_compile_file_updater.rb', line 29 def dependency_files @dependency_files end |
Instance Method Details
#updated_dependency_files ⇒ Object
37 38 39 40 41 42 |
# File 'lib/dependabot/python/file_updater/pip_compile_file_updater.rb', line 37 def updated_dependency_files return @updated_dependency_files if @update_already_attempted @update_already_attempted = true @updated_dependency_files ||= fetch_updated_dependency_files end |