public class RepoInfo
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static RepoInfo |
appstream()
Gets the RepoInfo for the AppStream repo
|
static RepoInfo |
create(java.lang.String name,
java.lang.String baseUrl)
Create a new repo info object with the given name and base url
|
static RepoInfo |
create(java.lang.String name,
java.lang.String baseUrl,
boolean available)
Create a new repo info object with the given name and base url
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFormattedCommand(KickstartData data)
Returns the actual command line that will be used in the
KickstartFormatter.
|
java.lang.String |
getName() |
static java.util.List<RepoInfo> |
getStandardRepos(KickstartableTree tree)
Returns all the standard addon repos available to RHEL
|
java.lang.String |
getUrl() |
int |
hashCode() |
boolean |
isAvailable() |
static RepoInfo |
parse(KickstartCommand cmd)
Creates a repo info object by parsing a KS Repo command
|
void |
setArgumentsIn(KickstartCommand command)
updates the arguments in kickstart command.
|
void |
setAvailable(boolean availableIn) |
static RepoInfo |
vt()
Gets the RepoInfo for the VT repo
|
public static RepoInfo parse(KickstartCommand cmd)
cmd - the ksrepo command to parsepublic static RepoInfo create(java.lang.String name, java.lang.String baseUrl)
name - the repo namebaseUrl - the repo URLpublic static RepoInfo create(java.lang.String name, java.lang.String baseUrl, boolean available)
name - the repo namebaseUrl - the repo URLavailable - is the repo availablepublic java.lang.String getName()
public java.lang.String getUrl()
public java.lang.String getFormattedCommand(KickstartData data)
data - KickstartData needed to generate the media urlpublic void setArgumentsIn(KickstartCommand command)
command - the command to set arguments on.public static RepoInfo vt()
public static RepoInfo appstream()
public static java.util.List<RepoInfo> getStandardRepos(KickstartableTree tree)
tree - the kickstartable treepublic boolean isAvailable()
public void setAvailable(boolean availableIn)
availableIn - the available to setpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object