role CompUnit::Repository

CompUnit::Repository

The CompUnit::Repository role defines the interface of the implementation of CompUnit::Repositories such as CompUnit::Repository::Installation and CompUnit::Repository::FileSystem.

Methods

method resolve

method resolve(CompUnit::DependencySpecification $spec --> CompUnit:D)

Returns a CompUnit mapped to the highest version distribution matching $spec from the first repository in the repository chain that contains any version of a distribution matching $spec.

method need

Loads and returns a CompUnit which is mapped to the highest version distribution matching $spec from the first repository in the repository chain that contains any version of a distribution matching $spec.

method load

method load(IO::Path:D $file --> CompUnit:D)

Load the $file and return a CompUnit object representing it.

method loaded

method loaded(--> Iterable:D)

Returns all CompUnits this repository has loaded.

Type Graph

Type relations for CompUnit::Repository
perl6-type-graph CompUnit::Repository CompUnit::Repository Mu Mu Any Any Any->Mu CompUnit::Repository::Locally CompUnit::Repository::Locally CompUnit::Repository::FileSystem CompUnit::Repository::FileSystem CompUnit::Repository::FileSystem->CompUnit::Repository CompUnit::Repository::FileSystem->Any CompUnit::Repository::FileSystem->CompUnit::Repository::Locally

Expand above chart