Skip to content

Commit

Permalink
disable old CERN repo by default
Browse files Browse the repository at this point in the history
  • Loading branch information
michi42 committed Jun 29, 2021
1 parent 0d904fd commit caaf77e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

package org.jmad.modelpack.service.conf;

import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabOld;
import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabPro;
import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabTesting;
import static org.jmad.modelpack.domain.JMadModelRepositories.defaultLocalFileRepository;
import static org.jmad.modelpack.domain.JMadModelRepositories.internal;

import cern.accsoft.steering.jmad.service.JMadService;
import cern.accsoft.steering.jmad.util.JMadPreferences;
import cern.accsoft.steering.jmad.util.TempFileUtilImpl;
Expand All @@ -18,12 +24,6 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;

import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabOld;
import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabPro;
import static org.jmad.modelpack.domain.JMadModelRepositories.cernGitlabTesting;
import static org.jmad.modelpack.domain.JMadModelRepositories.defaultLocalFileRepository;
import static org.jmad.modelpack.domain.JMadModelRepositories.internal;

/**
* Spring configuration that only creates the beans for the jmad-modelpack-service. It expects all the necessary beans
* already in the context. You can use the {@link JMadModelPackageServiceStandaloneConfiguration} if you want to
Expand All @@ -46,10 +46,10 @@ public ModelPackageFileCache modelPackageFileCache(JMadService jMadService) {
@Bean
public ConcurrentModelPackageRepositoryManager packageRepositoryManager() {
ConcurrentModelPackageRepositoryManager manager = new ConcurrentModelPackageRepositoryManager();
manager.enable(cernGitlabOld());
manager.enable(cernGitlabPro());
manager.enable(internal());
defaultLocalFileRepository().ifPresent(manager::enable);
manager.disable(cernGitlabOld());
manager.disable(cernGitlabTesting());
return manager;
}
Expand Down

0 comments on commit caaf77e

Please sign in to comment.