Interface GitService
- All Superinterfaces:
TechnologyService
- All Known Implementing Classes:
GitServiceImpl
-
Field Summary
Fields inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
scriptDirectory -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclone(GithubCredentials credentials, String remoteUrl, String localPath) voidvoidorg.eclipse.jgit.lib.RepositorygetRepository(String path) voidinitializeRepository(String path) localAndOriginMainInSync(GithubCredentials githubCredentials, String localRepoPath) localAndRemoteInSync(GithubCredentials githubCredentials, String localRepoPath, String remoteName, String remoteBranchName) voidpull(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) voidpullOriginMain(GithubCredentials credentials, String path) voidpush(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) voidpushOriginMain(GithubCredentials credentials, String path) voidsyncLocalWithOriginMain(GithubCredentials githubCredentials, String path) voidsyncLocalWithRemote(GithubCredentials githubCredentials, String path, String remoteName, String remoteBranchName) Methods inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
install, installed, installed, installFromScript
-
Method Details
-
initializeRepository
- Throws:
GitException
-
pullOriginMain
- Throws:
GitException
-
pull
void pull(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) throws GitException - Throws:
GitException
-
clone
void clone(GithubCredentials credentials, String remoteUrl, String localPath) throws GitException, IOException, org.eclipse.jgit.api.errors.GitAPIException - Throws:
GitExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIException
-
getRepository
- Throws:
IOException
-
push
void push(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) throws GitException - Throws:
GitException
-
pushOriginMain
- Throws:
GitException
-
add
-
addAll
-
commit
-
commitAll
-
localAndRemoteInSync
Boolean localAndRemoteInSync(GithubCredentials githubCredentials, String localRepoPath, String remoteName, String remoteBranchName) throws GitException - Throws:
GitException
-
localAndOriginMainInSync
Boolean localAndOriginMainInSync(GithubCredentials githubCredentials, String localRepoPath) throws GitException - Throws:
GitException
-
syncLocalWithRemote
void syncLocalWithRemote(GithubCredentials githubCredentials, String path, String remoteName, String remoteBranchName) -
syncLocalWithOriginMain
-