gitlab-org--gitlab-foss/app/services/deploy_keys/create_service.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
261 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-09-15 15:35:24 +00:00
module DeployKeys
class CreateService < Keys::BaseService
def execute(project: nil)
2017-09-15 15:35:24 +00:00
DeployKey.create(params.merge(user: user))
end
end
end
DeployKeys::CreateService.prepend_mod_with('DeployKeys::CreateService')