Class GitService

java.lang.Object
swiss.trustbroker.common.setup.service.GitService

public class GitService extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • refresh

      public void refresh()
    • getGitUrl

      public static String getGitUrl()
    • getGitBranch

      public static String getGitBranch()
    • remoteHasChanges

      public boolean remoteHasChanges()
    • pullConfiguration

      public void pullConfiguration()
    • getConfigCachePath

      public static String getConfigCachePath()
    • configCheckAndSetup

      public void configCheckAndSetup(String configurationPath, String gitUrl, String configBranch)
    • 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

      public String getRemoteLastCommit(org.eclipse.jgit.api.TransportConfigCallback transportConfig, String gitUrl, String gitBranch)
    • manageStartUpConfig

      public void manageStartUpConfig(String gitUrl, String configBranch, String configurationPath)
    • rolloverConfig

      public void rolloverConfig(String configurationPath)
    • bootConfiguration

      public static void bootConfiguration()
    • cloneConfiguration

      public void cloneConfiguration()
    • hasRemoteConfigVeto

      public static boolean hasRemoteConfigVeto()
    • hasFastConfigVeto

      public static boolean hasFastConfigVeto()