2020-02-28 18:09:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module DeployTokens
|
|
|
|
class CreateService < BaseService
|
|
|
|
include DeployTokenMethods
|
|
|
|
|
|
|
|
def execute
|
2022-03-24 12:07:26 +00:00
|
|
|
deploy_token = create_deploy_token_for(@project, current_user, params)
|
2020-04-01 12:08:00 +00:00
|
|
|
|
2020-04-21 15:21:10 +00:00
|
|
|
create_deploy_token_payload_for(deploy_token)
|
2020-02-28 18:09:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-03-07 03:18:52 +00:00
|
|
|
|
|
|
|
Projects::DeployTokens::CreateService.prepend_mod
|