Welcome to mirror list, hosted at ThFree Co, Russian Federation.

service_hook.rb « hooks « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d9f6d89d44d1dde78b5d51b9b0ebd068f5adf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class ServiceHook < WebHook
  belongs_to :service
  validates :service, presence: true

  # rubocop: disable CodeReuse/ServiceClass
  def execute(data)
    WebHookService.new(self, data, 'service_hook').execute
  end
  # rubocop: enable CodeReuse/ServiceClass
end