2020-02-28 18:09:07 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Groups
|
|
|
|
module DeployTokens
|
|
|
|
class CreateService < BaseService
|
|
|
|
include DeployTokenMethods
|
|
|
|
|
|
|
|
def execute
|
2020-04-01 12:08:00 +00:00
|
|
|
deploy_token = create_deploy_token_for(@group, params)
|
|
|
|
|
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-09 21:07:04 +00:00
|
|
|
|
|
|
|
Groups::DeployTokens::CreateService.prepend_mod
|