Package org.jclouds.scriptbuilder.domain
Class GitRepoAndRef
- java.lang.Object
-
- org.jclouds.scriptbuilder.domain.GitRepoAndRef
-
public class GitRepoAndRef extends Object
Description of git coordinates to checkout.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGitRepoAndRef.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protectedGitRepoAndRef(URI repository, com.google.common.base.Optional<String> branch, com.google.common.base.Optional<String> tag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GitRepoAndRef.Builderbuilder()booleanequals(Object obj)com.google.common.base.Optional<String>getBranch()Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository's HEAD, point to this branch instead.URIgetRepository()The (possibly remote) repository to clone from.com.google.common.base.Optional<String>getTag()checkout the following tag on the branchinthashCode()GitRepoAndRef.BuildertoBuilder()StringtoString()
-
-
-
Method Detail
-
builder
public static GitRepoAndRef.Builder builder()
-
toBuilder
public GitRepoAndRef.Builder toBuilder()
-
getRepository
public URI getRepository()
The (possibly remote) repository to clone from.
-
getBranch
public com.google.common.base.Optional<String> getBranch()
Instead of pointing the newly created HEAD to the branch pointed to by the cloned repository's HEAD, point to this branch instead. In a non-bare repository, this is the branch that will be checked out.
-
getTag
public com.google.common.base.Optional<String> getTag()
checkout the following tag on the branch
-
-