const mixinafFpm::Repository

afFpm::Repository

A repository of pods; usually a local directory or a fanr repository.

Repository classes are instantiated by FpmConfig.

cleanUp

Source

abstract Void cleanUp()

Cleans up any cached information this repository may hold.

delete

Source

abstract Void delete(PodFile podFile)

Deletes the given pod.

download

Source

abstract File download(PodFile podFile)

Returns a file representation of the given pod.

dump

Source

abstract Str dump()

isDirRepo

Source

Bool isDirRepo()

Returns true if this repository is just a single directory of pods.

isFanrRepo

Source

abstract Bool isFanrRepo()

Returns true if this repository is backed by fanr.

isLocal

Source

abstract Bool isLocal()

Returns true if this repository is local / hosted on the file system.

isRemote

Source

Bool isRemote()

Returns true if this repository is remote / hosted on the Internet.

makeDirRepo

Source

static new makeDirRepo(File dir)

Creates a local directory repository for the given directory.

makeFanrRepo

Source

static new makeFanrRepo(Uri url, Str? username := null, Str? password := null)

Creates a fanr repository (local or remote) for the given URL.

name

Source

abstract Str name()

Name of the repository.

resolve

Source

abstract PodFile[] resolve(Depend depend, Str:Obj? options)

Returns a list of all PodFiles that 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.
resolveAll

Source

abstract PodFile[] resolveAll()

Returns the latest version of all pods this repository holds.

upload

Source

abstract PodFile upload(PodFile podFile)

Installs the given pod. Returns the newly installed PodFile.

url

Source

abstract Uri url()

URL of where the repository is located.