|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.scriptbuilder.statements.git.CloneGitRepo
public class CloneGitRepo
Clones a gitRepoAndRef into a newly created directory, creates remote-tracking branches for each branch in the cloned gitRepoAndRef (visible using git branch -r), and creates and checks out an initial branch that is forked from the cloned gitRepoAndRef's currently active branch. PWD is set to the directory being checked out.
| Nested Class Summary | |
|---|---|
static class |
CloneGitRepo.Builder
|
| Field Summary | |
|---|---|
protected com.google.common.base.Optional<String> |
directory
|
protected GitRepoAndRef |
gitRepoAndRef
|
| Constructor Summary | |
|---|---|
protected |
CloneGitRepo(GitRepoAndRef gitRepoAndRef,
com.google.common.base.Optional<String> directory)
|
| Method Summary | |
|---|---|
static CloneGitRepo.Builder |
builder()
|
boolean |
equals(Object obj)
|
Iterable<String> |
functionDependencies(OsFamily arg0)
|
com.google.common.base.Optional<String> |
getDirectory()
The name of a new directory to clone into. |
GitRepoAndRef |
getGitRepoAndRef()
The coordinates to checkout |
int |
hashCode()
|
String |
render(OsFamily arg0)
|
CloneGitRepo.Builder |
toBuilder()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final GitRepoAndRef gitRepoAndRef
protected final com.google.common.base.Optional<String> directory
| Constructor Detail |
|---|
protected CloneGitRepo(GitRepoAndRef gitRepoAndRef,
com.google.common.base.Optional<String> directory)
| Method Detail |
|---|
public static CloneGitRepo.Builder builder()
public CloneGitRepo.Builder toBuilder()
public GitRepoAndRef getGitRepoAndRef()
public com.google.common.base.Optional<String> getDirectory()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic Iterable<String> functionDependencies(OsFamily arg0)
functionDependencies in interface Statementpublic String render(OsFamily arg0)
render in interface Statementpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||