Class: Projects::ContainerRepository::CleanupTagsService
- Inherits:
-
BaseContainerRepositoryService
- Object
- BaseContainerService
- BaseContainerRepositoryService
- Projects::ContainerRepository::CleanupTagsService
- Defined in:
- app/services/projects/container_repository/cleanup_tags_service.rb
Instance Attribute Summary
Attributes inherited from BaseContainerService
#container, #current_user, #group, #params, #project
Instance Method Summary collapse
Methods inherited from BaseContainerRepositoryService
Methods inherited from BaseContainerService
#group_container?, #initialize, #namespace_container?, #project_container?, #project_group
Methods included from BaseServiceUtility
#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level
Methods included from Gitlab::Allowable
Constructor Details
This class inherits a constructor from Projects::ContainerRepository::BaseContainerRepositoryService
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/services/projects/container_repository/cleanup_tags_service.rb', line 6 def execute return error('access denied') unless can_destroy? return error('invalid regex') unless valid_regex? .new(container_repository: container_repository, current_user: current_user, params: params) .execute end |