2020-03-02 21:08:01 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ProjectUpdateRepositoryStorageWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
2020-03-14 00:09:30 +00:00
|
|
|
feature_category :gitaly
|
2020-03-02 21:08:01 +00:00
|
|
|
|
|
|
|
def perform(project_id, new_repository_storage_key)
|
|
|
|
project = Project.find(project_id)
|
|
|
|
|
|
|
|
::Projects::UpdateRepositoryStorageService.new(project).execute(new_repository_storage_key)
|
|
|
|
end
|
|
|
|
end
|