17 lines
366 B
Ruby
17 lines
366 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Groups
|
|
module DeployTokens
|
|
class CreateService < BaseService
|
|
include DeployTokenMethods
|
|
|
|
def execute
|
|
deploy_token = create_deploy_token_for(@group, current_user, params)
|
|
|
|
create_deploy_token_payload_for(deploy_token)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
Groups::DeployTokens::CreateService.prepend_mod
|