Skip to content

Commit

Permalink
chore: rename cloneLatestHub to cloneHub
Browse files Browse the repository at this point in the history
  • Loading branch information
florianow committed Mar 13, 2024
1 parent 82ab92c commit 50d186a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/compliance/import.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function registerImportCmd(program: TopLevelCommand) {
}

logger.progress("updating local cache of collie hub from " + hub.url);
const hubDir = await hub.cloneLatestHub();
const hubDir = await hub.cloneHub();

id = id || (await promptForComplianceFrameworkId(hubDir));

Expand Down
2 changes: 1 addition & 1 deletion src/commands/kit/import.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function registerImportCmd(program: TopLevelCommand) {
}

logger.progress("updating local cache of hub modules from " + hub.url);
const hubDir = await hub.cloneLatestHub();
const hubDir = await hub.cloneHub();

id = id || (await promptForKitModuleId(logger, hubDir));

Expand Down
2 changes: 1 addition & 1 deletion src/model/CollieHub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class CollieHub {
await fs.copy(srcDir, frameworkDestDir, { overwrite: overwrite });
}

async cloneLatestHub() {
async cloneHub() {
const hubCacheDir = this.repo.resolvePath(...this.hubCacheDirPath);

// we do keep a git clone of the repo locally because copying on the local FS is much faster than downloading and
Expand Down

0 comments on commit 50d186a

Please sign in to comment.