Class GitUtils

java.lang.Object
com.tremolosecurity.git.GitUtils

public class GitUtils extends Object
  • Constructor Details

    • GitUtils

      public GitUtils(String gitUrl, String privateKey)
  • Method Details

    • checkOut

      public void checkOut() throws FileNotFoundException, org.eclipse.jgit.api.errors.InvalidRemoteException, org.eclipse.jgit.api.errors.TransportException, org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      FileNotFoundException
      org.eclipse.jgit.api.errors.InvalidRemoteException
      org.eclipse.jgit.api.errors.TransportException
      org.eclipse.jgit.api.errors.GitAPIException
    • cleanup

      public void cleanup()
    • applyFiles

      public void applyFiles(List<GitFile> files) throws IOException, org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException, com.github.fge.jsonpatch.JsonPatchException, org.json.simple.parser.ParseException
      Throws:
      IOException
      org.eclipse.jgit.api.errors.NoFilepatternException
      org.eclipse.jgit.api.errors.GitAPIException
      com.github.fge.jsonpatch.JsonPatchException
      org.json.simple.parser.ParseException
    • commitAndPush

      public void commitAndPush(String wfMessage) throws org.eclipse.jgit.api.errors.NoFilepatternException, org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.NoFilepatternException
      org.eclipse.jgit.api.errors.GitAPIException