MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / _checkInRepoAddonExists

Function _checkInRepoAddonExists

lib/models/blueprint.js:425–447  ·  view source on GitHub ↗

@private @method _checkInRepoAddonExists @param {Object} options

(options)

Source from the content-addressed store, hash-verified

423 @param {Object} options
424 */
425 _checkInRepoAddonExists(options) {
426 let addon;
427
428 if (options.inRepoAddon) {
429 addon = findAddonByName(this.project, options.inRepoAddon);
430
431 if (!addon) {
432 throw new SilentError(
433 `You specified the 'in-repo-addon' flag, but the ` +
434 `in-repo-addon '${options.inRepoAddon}' does not exist. Please check the name and try again.`
435 );
436 }
437 }
438
439 if (options.in) {
440 if (!ensureTargetDirIsAddon(options.in)) {
441 throw new SilentError(
442 `You specified the 'in' flag, but the ` +
443 `in repo addon '${options.in}' does not exist. Please check the name and try again.`
444 );
445 }
446 }
447 },
448
449 /**
450 @private

Callers

nothing calls this directly

Calls 2

findAddonByNameFunction · 0.85
ensureTargetDirIsAddonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…