debian-mirror-gitlab/app/services/deploy_tokens/create_service.rb

12 lines
252 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-05-09 12:01:36 +05:30
module DeployTokens
class CreateService < BaseService
def execute
2019-09-30 21:07:59 +05:30
@project.deploy_tokens.create(params) do |deploy_token|
deploy_token.username = params[:username].presence
end
2018-05-09 12:01:36 +05:30
end
end
end