Class: AuthorizedProjectUpdate::ProjectRecalculateService
- Inherits:
-
Object
- Object
- AuthorizedProjectUpdate::ProjectRecalculateService
- Includes:
- Gitlab::Utils::StrongMemoize
- Defined in:
- app/services/authorized_project_update/project_recalculate_service.rb
Direct Known Subclasses
Constant Summary collapse
- BATCH_SIZE =
1000
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project) ⇒ ProjectRecalculateService
constructor
A new instance of ProjectRecalculateService.
Constructor Details
#initialize(project) ⇒ ProjectRecalculateService
Returns a new instance of ProjectRecalculateService.
9 10 11 |
# File 'app/services/authorized_project_update/project_recalculate_service.rb', line 9 def initialize(project) @project = project end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 |
# File 'app/services/authorized_project_update/project_recalculate_service.rb', line 13 def execute if needs_refresh? ServiceResponse.success end |