2020-02-28 13:09:07 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Projects
|
|
|
|
module DeployTokens
|
|
|
|
class CreateService < BaseService
|
|
|
|
include DeployTokenMethods
|
|
|
|
|
|
|
|
def execute
|
2020-04-01 08:08:00 -04:00
|
|
|
deploy_token = create_deploy_token_for(@project, params)
|
|
|
|
|
2020-04-21 11:21:10 -04:00
|
|
|
create_deploy_token_payload_for(deploy_token)
|
2020-02-28 13:09:07 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|