public class GitClient extends Object
| Constructor and Description |
|---|
GitClient(com.openshift.client.IApplication app) |
| Modifier and Type | Method and Description |
|---|---|
void |
deploy(List<String> deployments,
File workingCopyDir,
String relativeDeployDir) |
void |
deploy(List<String> deployments,
File workingCopyDir,
String relativeDeployDir,
String commitMsg,
String openshiftDirectory)
Deploy the deployment units through Git.
|
void |
setLogger(Logger log) |
public void setLogger(Logger log)
public void deploy(List<String> deployments, File workingCopyDir, String relativeDeployDir) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void deploy(List<String> deployments, File workingCopyDir, String relativeDeployDir, String commitMsg, String openshiftDirectory) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
deployments - list of packages to be deployedworkingCopyDir - where git repo will be clonedrelativeDeployDir - the relative path in the working copy where the deployment packages should be copiedcommitMsg - git commit messageopenshiftDirectory - The configured value that contains an openshift directory structure.
This value should be the Absolute Path to the directory. The Parameter can
also be null or emptyIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionorg.eclipse.jgit.api.errors.TransportExceptionorg.eclipse.jgit.api.errors.InvalidRemoteExceptionCopyright © 2004-2015. All Rights Reserved.