debian-mirror-gitlab/app/services/deploy_keys/create_service.rb
2021-06-08 01:23:25 +05:30

11 lines
261 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
DeployKeys::CreateService.prepend_mod_with('DeployKeys::CreateService')