public class LocalRepository extends Object
| Constructor and Description |
|---|
LocalRepository(GitRepository repo,
File dir) |
| Modifier and Type | Method and Description |
|---|---|
static LocalRepository |
findRepository(List<LocalRepository> localRepositories,
String name)
Returns the repository for the given name or null if it could not be found
|
static LocalRepository |
fromDirectory(File dir)
Returns a local repository from a directory.
|
String |
getCloneUrl() |
File |
getDir() |
String |
getFullName() |
GitRepository |
getRepo() |
static String |
getRepositoryLink(LocalRepository repository)
Returns the link to the repository
|
static String |
getRepositoryLink(LocalRepository repository,
String label)
Returns the link to the repository
|
static String |
getRepositoryLink(LocalRepository repository,
String label,
String defaultValue)
Returns the link to the repository
|
boolean |
hasCloneUrl(String cloneUrl)
Returns true if this repository can be cloned using the given URL
|
String |
toString() |
public LocalRepository(GitRepository repo, File dir)
public static LocalRepository fromDirectory(File dir)
public static LocalRepository findRepository(List<LocalRepository> localRepositories, String name)
public static String getRepositoryLink(LocalRepository repository)
public static String getRepositoryLink(LocalRepository repository, String label)
public static String getRepositoryLink(LocalRepository repository, String label, String defaultValue)
public String getFullName()
public GitRepository getRepo()
public File getDir()
public String getCloneUrl()
public boolean hasCloneUrl(String cloneUrl)
Copyright © 2076–2017 Red Hat. All rights reserved.