gitlab-org--gitlab-foss/app/services/deploy_keys/create_service.rb
Rémy Coutable fa7ed15df6
Make Projects::DeployKeysController EE-ready
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-12-19 18:02:01 +01:00

9 lines
188 B
Ruby

# frozen_string_literal: true
module DeployKeys
class CreateService < Keys::BaseService
def execute(project: nil)
DeployKey.create(params.merge(user: user))
end
end
end