Class GitUtils
java.lang.Object
com.tremolosecurity.git.GitUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFiles(List<GitFile> files) voidcheckOut()voidcleanup()voidcommitAndPush(String wfMessage)
-
Constructor Details
-
GitUtils
-
-
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:
FileNotFoundExceptionorg.eclipse.jgit.api.errors.InvalidRemoteExceptionorg.eclipse.jgit.api.errors.TransportExceptionorg.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:
IOExceptionorg.eclipse.jgit.api.errors.NoFilepatternExceptionorg.eclipse.jgit.api.errors.GitAPIExceptioncom.github.fge.jsonpatch.JsonPatchExceptionorg.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.NoFilepatternExceptionorg.eclipse.jgit.api.errors.GitAPIException
-