1. role CompUnit::Repository::Installable does CompUnit::Repository {
  2. # Installs a distribution into the repository.
  3. method install(Distribution $dist) { ... }
  4. # Returns True if we can install modules (this will typically do a
  5. # .w check on the module database).
  6. method can-install(--> Bool:D) { ... }
  7. # Returns the Distribution objects for all installed distributions.
  8. method installed(--> Iterable:D) { }
  9. }