2020-04-08 14:13:33 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Groups
|
|
|
|
module DeployTokens
|
|
|
|
class CreateService < BaseService
|
|
|
|
include DeployTokenMethods
|
|
|
|
|
|
|
|
def execute
|
2020-04-22 19:07:51 +05:30
|
|
|
deploy_token = create_deploy_token_for(@group, params)
|
|
|
|
|
|
|
|
create_deploy_token_payload_for(deploy_token)
|
2020-04-08 14:13:33 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2022-05-07 20:08:51 +05:30
|
|
|
|
|
|
|
Groups::DeployTokens::CreateService.prepend_mod
|