role CompUnit::Repository
CompUnit::Repository
| 1 | Methods |
| 1.1 | method resolve |
| 1.2 | method need |
| 1.3 | method load |
| 1.4 | method loaded |
| 2 | Type Graph |
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 --> CompUnit)
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 --> CompUnit)
Load the $file and return a CompUnit object representing it.
method loaded
method loaded(--> Iterable)
Returns all CompUnits this repository has loaded.
Type Graph
CompUnit::Repository