Class GitService
java.lang.Object
swiss.trustbroker.common.setup.service.GitService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidcloneConfig(File workingDir, String gitRepoUrl, String configBranch) voidvoidconfigCheckAndSetup(String configurationPath, String gitUrl, String configBranch) static Stringstatic Stringstatic StringgetRemoteLastCommit(org.eclipse.jgit.api.TransportConfigCallback transportConfig, String gitUrl, String gitBranch) static booleanstatic booleanvoidmanageStartUpConfig(String gitUrl, String configBranch, String configurationPath) voidvoidrefresh()booleanvoidrolloverConfig(String configurationPath)
-
Field Details
-
CONFIGURATION_PATH_SUB_DIR_LATEST
- See Also:
-
-
Constructor Details
-
GitService
-
-
Method Details
-
refresh
public void refresh() -
getGitUrl
-
getGitBranch
-
remoteHasChanges
public boolean remoteHasChanges() -
pullConfiguration
public void pullConfiguration() -
getConfigCachePath
-
configCheckAndSetup
-
cloneConfig
public void cloneConfig(File workingDir, String gitRepoUrl, String configBranch) throws org.eclipse.jgit.api.errors.GitAPIException - Throws:
org.eclipse.jgit.api.errors.GitAPIException
-
getRemoteLastCommit
-
manageStartUpConfig
-
rolloverConfig
-
bootConfiguration
public static void bootConfiguration() -
cloneConfiguration
public void cloneConfiguration() -
hasRemoteConfigVeto
public static boolean hasRemoteConfigVeto() -
hasFastConfigVeto
public static boolean hasFastConfigVeto()
-