Commit b01d3f01 authored by Pedro Pombeiro's avatar Pedro Pombeiro

Rename RunnerRegistrationAuditEventService

parent 3e7b1482
# frozen_string_literal: true
module AuditEvents
class RegisterRunnerAuditEventService < RunnerRegistrationAuditEventService
class RegisterRunnerAuditEventService < RunnerAuditEventService
def token_field
:runner_registration_token
end
......
# frozen_string_literal: true
module AuditEvents
class RunnerRegistrationAuditEventService < ::AuditEventService
# Logs an audit event related to a runner registration event
class RunnerAuditEventService < ::AuditEventService
# Logs an audit event related to a runner event
#
# @param [Ci::Runner] runner
# @param [String, User] author the entity initiating the operation (e.g. a runner registration or authentication token)
......@@ -43,10 +43,6 @@ module AuditEvents
raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end
def author_class
raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end
def runner_type
@runner.runner_type.chomp('_type')
end
......
# frozen_string_literal: true
module AuditEvents
class UnregisterRunnerAuditEventService < RunnerRegistrationAuditEventService
class UnregisterRunnerAuditEventService < RunnerAuditEventService
def token_field
:runner_authentication_token
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment