Skip to content

Commit

Permalink
Repos - Adding registry
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoalves committed Nov 16, 2020
1 parent 4886469 commit 49aefb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export default class Config {
log.info("");
log.info("=== LevainRepos");
this.addLevainRepo(repos);
this.addLevainRegistryRepo(repos);
this.addCurrentDirRepo(repos);
this.addRepos(repos, args.addRepo);

Expand All @@ -150,6 +151,11 @@ export default class Config {
repos.push(new FileSystemRepository(this, this.levainSrcDir));
}

private addLevainRegistryRepo(repos: Repository[]) {
log.info(`LevainRepo: DEFAULT ${this.levainRegistry} --> Levain registry dir`);
repos.push(new FileSystemRepository(this, this.levainRegistry));
}

private addCurrentDirRepo(repos: Repository[]) {
log.info(`LevainRepo: DEFAULT ${Deno.cwd()} --> Current working dir`);
repos.push(new FileSystemRepository(this, Deno.cwd()));
Expand Down

0 comments on commit 49aefb1

Please sign in to comment.