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

propagate_service_template.rb « admin « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd0d2d5d03fa5e551b266a0b77310b90191698f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Admin
  class PropagateServiceTemplate
    include PropagateService

    def propagate
      return unless integration.active?

      create_integration_for_projects_without_integration
    end

    private

    def service_hash
      @service_hash ||= integration.to_service_hash
    end
  end
end