debian-mirror-gitlab/app/services/admin/propagate_service_template.rb

20 lines
337 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# 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