Class GitServiceImpl
java.lang.Object
com.winchesters.devopsify.service.technologies.git.GitServiceImpl
- All Implemented Interfaces:
GitService,TechnologyService
-
Field Summary
Fields inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
scriptDirectory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidclone(GithubCredentials credentials, String remoteUrl, String localPath) voidvoidorg.eclipse.jgit.lib.RepositorygetRepository(String path) voidinitializeRepository(String path) voidinstall()booleanlocalAndOriginMainInSync(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.winchesters.devopsify.service.technologies.TechnologyService
installed, installFromScript
-
Constructor Details
-
GitServiceImpl
public GitServiceImpl()
-
-
Method Details
-
installed
public boolean installed()- Specified by:
installedin interfaceTechnologyService
-
install
public void install()- Specified by:
installin interfaceTechnologyService
-
initializeRepository
- Specified by:
initializeRepositoryin interfaceGitService- Throws:
GitException
-
localAndRemoteInSync
public Boolean localAndRemoteInSync(GithubCredentials githubCredentials, String localRepoPath, String remoteName, String remoteBranchName) throws GitException - Specified by:
localAndRemoteInSyncin interfaceGitService- Throws:
GitException
-
localAndOriginMainInSync
public Boolean localAndOriginMainInSync(GithubCredentials githubCredentials, String localRepoPath) throws GitException - Specified by:
localAndOriginMainInSyncin interfaceGitService- Throws:
GitException
-
pullOriginMain
- Specified by:
pullOriginMainin interfaceGitService- Throws:
GitException
-
pull
public void pull(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) - Specified by:
pullin interfaceGitService
-
clone
- Specified by:
clonein interfaceGitService
-
getRepository
- Specified by:
getRepositoryin interfaceGitService- Throws:
IOException
-
push
public void push(GithubCredentials credentials, String path, String remoteRepoName, String remoteBranchName) throws GitException - Specified by:
pushin interfaceGitService- Throws:
GitException
-
pushOriginMain
- Specified by:
pushOriginMainin interfaceGitService- Throws:
GitException
-
add
- Specified by:
addin interfaceGitService
-
addAll
- Specified by:
addAllin interfaceGitService
-
commit
- Specified by:
commitin interfaceGitService
-
commitAll
- Specified by:
commitAllin interfaceGitService
-
syncLocalWithRemote
public void syncLocalWithRemote(GithubCredentials githubCredentials, String path, String remoteName, String remoteBranchName) - Specified by:
syncLocalWithRemotein interfaceGitService
-
syncLocalWithOriginMain
- Specified by:
syncLocalWithOriginMainin interfaceGitService
-