Class CloneGitRepo
java.lang.Object
org.jclouds.scriptbuilder.statements.git.CloneGitRepo
- All Implemented Interfaces:
 Statement
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
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.base.Optional<String> protected final GitRepoAndRef - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCloneGitRepo(GitRepoAndRef gitRepoAndRef, com.google.common.base.Optional<String> directory)  - 
Method Summary
Modifier and TypeMethodDescriptionstatic CloneGitRepo.Builderbuilder()booleanfunctionDependencies(OsFamily arg0) com.google.common.base.Optional<String> The name of a new directory to clone into.The coordinates to checkoutinthashCode()toString() 
- 
Field Details
- 
gitRepoAndRef
 - 
directory
 
 - 
 - 
Constructor Details
- 
CloneGitRepo
protected CloneGitRepo(GitRepoAndRef gitRepoAndRef, com.google.common.base.Optional<String> directory)  
 - 
 - 
Method Details
- 
builder
 - 
toBuilder
 - 
getGitRepoAndRef
The coordinates to checkout - 
getDirectory
The name of a new directory to clone into. The "humanish" part of the source gitRepoAndRef is used if no directory is explicitly given (repo for /path/to/repo.git and foo for host.xz:foo/.git). - 
hashCode
public int hashCode() - 
equals
 - 
functionDependencies
- Specified by:
 functionDependenciesin interfaceStatement
 - 
render
 - 
toString
 
 -