Commit 8947232b authored by Sean McGivern's avatar Sean McGivern
Browse files

Allow passing exceptions when creating project services

parent 75fcc9c15cc3
......@@ -801,10 +801,12 @@ def cache_has_external_wiki
update_column(:has_external_wiki, services.external_wikis.any?)
end
def find_or_initialize_services
def find_or_initialize_services(exceptions: [])
services_templates = Service.where(template: true)
Service.available_services_names.map do |service_name|
available_services_names = Service.available_services_names - exceptions
available_services_names.map do |service_name|
service = find_service(services, service_name)
if service
......
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