Class: Dependabot::Bundler::UpdateChecker::ForceUpdater
- Inherits:
-
Object
- Object
- Dependabot::Bundler::UpdateChecker::ForceUpdater
- Includes:
- SharedBundlerHelpers
- Defined in:
- lib/dependabot/bundler/update_checker/force_updater.rb
Constant Summary
Constants included from SharedBundlerHelpers
SharedBundlerHelpers::GIT_REF_REGEX, SharedBundlerHelpers::GIT_REGEX, SharedBundlerHelpers::PATH_REGEX, SharedBundlerHelpers::RETRYABLE_ERRORS, SharedBundlerHelpers::RETRYABLE_PRIVATE_REGISTRY_ERRORS
Instance Method Summary collapse
-
#initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, target_version:, requirements_update_strategy:, update_multiple_dependencies: true, options:) ⇒ ForceUpdater
constructor
A new instance of ForceUpdater.
- #updated_dependencies ⇒ Object
Methods included from SharedBundlerHelpers
#base_directory, #handle_bundler_errors, #in_a_native_bundler_context, #inaccessible_git_dependencies, #jfrog_source, #private_registry_credentials, #retryable_error?
Constructor Details
#initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, target_version:, requirements_update_strategy:, update_multiple_dependencies: true, options:) ⇒ ForceUpdater
Returns a new instance of ForceUpdater.
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 20 def initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, target_version:, requirements_update_strategy:, update_multiple_dependencies: true, options:) @dependency = dependency @dependency_files = dependency_files @repo_contents_path = repo_contents_path @credentials = credentials @target_version = target_version @requirements_update_strategy = requirements_update_strategy @update_multiple_dependencies = update_multiple_dependencies @options = end |
Instance Method Details
#updated_dependencies ⇒ Object
35 36 37 |
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 35 def updated_dependencies @updated_dependencies ||= force_update end |