Class GitJobExecutor
- java.lang.Object
-
- com.netflix.spinnaker.clouddriver.artifacts.gitRepo.GitJobExecutor
-
public class GitJobExecutor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GitJobExecutor(GitRepoArtifactAccount account, com.netflix.spinnaker.clouddriver.jobs.JobExecutor jobExecutor, java.lang.String gitExecutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarchive(java.nio.file.Path localClone, java.lang.String branch, java.lang.String subDir, java.nio.file.Path outputFile)voidcloneOrPull(java.lang.String repoUrl, java.lang.String branch, java.nio.file.Path localPath, java.lang.String repoBasename)
-
-
-
Constructor Detail
-
GitJobExecutor
public GitJobExecutor(GitRepoArtifactAccount account, com.netflix.spinnaker.clouddriver.jobs.JobExecutor jobExecutor, java.lang.String gitExecutable) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
cloneOrPull
public void cloneOrPull(java.lang.String repoUrl, java.lang.String branch, java.nio.file.Path localPath, java.lang.String repoBasename) throws java.io.IOException- Throws:
java.io.IOException
-
archive
public void archive(java.nio.file.Path localClone, java.lang.String branch, java.lang.String subDir, java.nio.file.Path outputFile) throws java.io.IOException- Throws:
java.io.IOException
-
-