A repository of pods; usually a local directory or a fanr repository.
Repository classes are instantiated by FpmConfig.
abstract Void cleanUp()
Cleans up any cached information this repository may hold.
Deletes the given pod.
Returns a file representation of the given pod.
trueif this repository is just a single directory of pods.
abstract Bool isFanrRepo()
trueif this repository is backed by fanr.
abstract Bool isLocal()
trueif this repository is local / hosted on the file system.
trueif this repository is remote / hosted on the Internet.
static new makeDirRepo(File dir)
Creates a local directory repository for the given directory.
Creates a fanr repository (local or remote) for the given URL.
abstract Str name()
Name of the repository.
Returns a list of all
PodFilesthat match the given dependency.
Options are targeted at remote fanr repositories and may include:
maxPods (Int)- the maximum number of pods to return. (defaults to 5).
corePods (Bool)- also query for core pods.
minVer (Version)- the min pod version to query for.
log (Log)- query results will be logged to this.
abstract PodFile resolveAll()
Returns the latest version of all pods this repository holds.
Installs the given pod. Returns the newly installed
abstract Uri url()
URL of where the repository is located.