2018-07-16 12:31:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-15 11:35:24 -04:00
|
|
|
module GpgKeys
|
|
|
|
class CreateService < Keys::BaseService
|
|
|
|
def execute
|
|
|
|
key = user.gpg_keys.create(params)
|
|
|
|
notification_service.new_gpg_key(key) if key.persisted?
|
|
|
|
key
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|