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 TypeMethodDescriptionvoid
void
void
clone
(GithubCredentials credentials, String remoteUrl, String localPath) void
void
org.eclipse.jgit.lib.Repository
getRepository
(String path) void
initializeRepository
(String path) localAndOriginMainInSync
(GithubCredentials githubCredentials, String localRepoPath) localAndRemoteInSync
(GithubCredentials githubCredentials, String localRepoPath, String remoteName, String remoteBranchName) void
pull
(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) void
pullOriginMain
(GithubCredentials credentials, String path) void
push
(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) void
pushOriginMain
(GithubCredentials credentials, String path) void
syncLocalWithOriginMain
(GithubCredentials githubCredentials, String path) void
syncLocalWithRemote
(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:
GitException
IOException
org.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
-