Commit b01d3f01 authored by Pedro Pombeiro's avatar Pedro Pombeiro

Rename RunnerRegistrationAuditEventService

parent 3e7b1482
# frozen_string_literal: true # frozen_string_literal: true
module AuditEvents module AuditEvents
class RegisterRunnerAuditEventService < RunnerRegistrationAuditEventService class RegisterRunnerAuditEventService < RunnerAuditEventService
def token_field def token_field
:runner_registration_token :runner_registration_token
end end
......
# frozen_string_literal: true # frozen_string_literal: true
module AuditEvents module AuditEvents
class RunnerRegistrationAuditEventService < ::AuditEventService class RunnerAuditEventService < ::AuditEventService
# Logs an audit event related to a runner registration event # Logs an audit event related to a runner event
# #
# @param [Ci::Runner] runner # @param [Ci::Runner] runner
# @param [String, User] author the entity initiating the operation (e.g. a runner registration or authentication token) # @param [String, User] author the entity initiating the operation (e.g. a runner registration or authentication token)
...@@ -43,10 +43,6 @@ module AuditEvents ...@@ -43,10 +43,6 @@ module AuditEvents
raise NotImplementedError, "Please implement #{self.class}##{__method__}" raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end end
def author_class
raise NotImplementedError, "Please implement #{self.class}##{__method__}"
end
def runner_type def runner_type
@runner.runner_type.chomp('_type') @runner.runner_type.chomp('_type')
end end
......
# frozen_string_literal: true # frozen_string_literal: true
module AuditEvents module AuditEvents
class UnregisterRunnerAuditEventService < RunnerRegistrationAuditEventService class UnregisterRunnerAuditEventService < RunnerAuditEventService
def token_field def token_field
:runner_authentication_token :runner_authentication_token
end 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