2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-15 11:35:24 -04:00
|
|
|
module DeployKeys
|
|
|
|
class CreateService < Keys::BaseService
|
2018-12-18 11:40:05 -05:00
|
|
|
def execute(project: nil)
|
2017-09-15 11:35:24 -04:00
|
|
|
DeployKey.create(params.merge(user: user))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2019-09-13 09:26:31 -04:00
|
|
|
|
|
|
|
DeployKeys::CreateService.prepend_if_ee('::EE::DeployKeys::CreateService')
|