public class MultipleJGitEnvironmentRepository extends JGitEnvironmentRepository
EnvironmentRepository
that based on one or more git repositories. Can be
configured just like a single JGitEnvironmentRepository
, for the "default"
properties, and then additional repositories can be registered by name. The simplest
form of the registration is just a map from name to uri (plus credentials if needed),
where each app has its own git repository. As well as a name you can provide a pattern
that matches on the application name (or even a list of patterns). Each sub-repository
additionally can have its own search paths (subdirectories inside the top level of the
repository).Modifier and Type | Class and Description |
---|---|
static class |
MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository
A
JGitEnvironmentProperties that matches patterns. |
JGitEnvironmentRepository.JGitFactory
SearchPathLocator.Locations
MESSAGE
logger
Constructor and Description |
---|
MultipleJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment,
MultipleJGitEnvironmentProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
Environment |
findOne(String application,
String profile,
String label,
boolean includeOrigin) |
SearchPathLocator.Locations |
getLocations(String application,
String profile,
String label) |
Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> |
getRepos() |
void |
setOrder(int order) |
void |
setRepos(Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> repos) |
fetch, getDefaultLabel, getGitFactory, getLastRefresh, getRefreshRate, getTimeout, getTransportConfigCallback, isCloneOnStart, isDeleteUntrackedBranches, isForcePull, isSkipSslValidation, refresh, setCloneOnStart, setDefaultLabel, setDeleteUntrackedBranches, setForcePull, setGitCredentialsProviderFactory, setGitFactory, setLastRefresh, setRefreshRate, setSkipSslValidation, setTimeout, setTransportConfigCallback, shouldPull, warn
findOne, getOrder
createBaseDir, getBasedir, getEnvironment, getPassphrase, getPassword, getSearchLocations, getSearchPaths, getUri, getUsername, getWorkingDirectory, isStrictHostKeyChecking, setBasedir, setEnvironment, setPassphrase, setPassword, setResourceLoader, setSearchPaths, setStrictHostKeyChecking, setUri, setUsername
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findOne
public MultipleJGitEnvironmentRepository(org.springframework.core.env.ConfigurableEnvironment environment, MultipleJGitEnvironmentProperties properties)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class JGitEnvironmentRepository
Exception
public Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> getRepos()
public void setRepos(Map<String,MultipleJGitEnvironmentRepository.PatternMatchingJGitEnvironmentRepository> repos)
public SearchPathLocator.Locations getLocations(String application, String profile, String label)
getLocations
in interface SearchPathLocator
getLocations
in class JGitEnvironmentRepository
public Environment findOne(String application, String profile, String label, boolean includeOrigin)
findOne
in interface EnvironmentRepository
findOne
in class AbstractScmEnvironmentRepository
public void setOrder(int order)
setOrder
in class AbstractScmEnvironmentRepository
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.