blob: 327a1dbf408a579799b7a8ac168398f0792cc76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
# frozen_string_literal: true
module DeployTokens
class CreateService < BaseService
def execute
@project.deploy_tokens.create(params) do |deploy_token|
deploy_token.username = params[:username].presence
end
end
end
end
|