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