Class GitConfigImpl
- java.lang.Object
-
- org.guvnor.ala.source.git.config.impl.GitConfigImpl
-
-
Constructor Summary
Constructors Constructor Description GitConfigImpl()GitConfigImpl(String outPath, String branch, String origin, String repoName, String createRepo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitConfigasNewClone(GitConfig source)StringgetBranch()Get the Branch Name of the repository that will be usedStringgetCreateRepo()Get String to find out if we need to create the repo or not.StringgetOrigin()Get the Origin addressStringgetOutPath()Get the OutPath where the repo is going to be storedStringgetRepoName()Get the Repository NamevoidsetBranch(String branch)voidsetCreateRepo(String createRepo)voidsetOrigin(String origin)voidsetOutPath(String outPath)voidsetRepoName(String repoName)StringtoString()
-
-
-
Method Detail
-
getOutPath
public String getOutPath()
Description copied from interface:GitConfigGet the OutPath where the repo is going to be stored- Specified by:
getOutPathin interfaceGitConfig- Returns:
- String with the OutPath if provided, if not it will default to resolve the expression ${input.out-dir} from the Pipeline Input map
-
getBranch
public String getBranch()
Description copied from interface:GitConfigGet the Branch Name of the repository that will be used
-
getOrigin
public String getOrigin()
Description copied from interface:GitConfigGet the Origin address
-
getRepoName
public String getRepoName()
Description copied from interface:GitConfigGet the Repository Name- Specified by:
getRepoNamein interfaceGitConfig- Returns:
- a String with the repository name if provided, if not it will default to resolve the expression ${input.repo-name} from the Pipeline Input map.
-
setOutPath
public void setOutPath(String outPath)
-
setBranch
public void setBranch(String branch)
-
setOrigin
public void setOrigin(String origin)
-
setRepoName
public void setRepoName(String repoName)
-
getCreateRepo
public String getCreateRepo()
Description copied from interface:GitConfigGet String to find out if we need to create the repo or not.- Specified by:
getCreateRepoin interfaceGitConfig- Returns:
- String true/false. If no set it will default to resolve the expression ${input.create-repo} from the Pipeline Input map.
-
setCreateRepo
public void setCreateRepo(String createRepo)
-
-