org.jclouds.scriptbuilder.domain
Class GitRepoAndRef

java.lang.Object
  extended by org.jclouds.scriptbuilder.domain.GitRepoAndRef

public class GitRepoAndRef
extends Object

Description of git coordinates to checkout.


Nested Class Summary
static class GitRepoAndRef.Builder
           
 
Field Summary
protected  com.google.common.base.Optional<String> branch
           
protected  URI repository
           
protected  com.google.common.base.Optional<String> tag
           
 
Constructor Summary
protected GitRepoAndRef(URI repository, com.google.common.base.Optional<String> branch, com.google.common.base.Optional<String> tag)
           
 
Method Summary
static GitRepoAndRef.Builder builder()
           
 boolean equals(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.
 URI getRepository()
          The (possibly remote) repository to clone from.
 com.google.common.base.Optional<String> getTag()
          checkout the following tag on the branch
 int hashCode()
          
 GitRepoAndRef.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

repository

protected final URI repository

branch

protected final com.google.common.base.Optional<String> branch

tag

protected final com.google.common.base.Optional<String> tag
Constructor Detail

GitRepoAndRef

protected GitRepoAndRef(URI repository,
                        com.google.common.base.Optional<String> branch,
                        com.google.common.base.Optional<String> tag)
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


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.