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

Function install

lib/models/blueprint.js:587–607  ·  view source on GitHub ↗

@method install @param {Object} options @return {Promise}

(options)

Source from the content-addressed store, hash-verified

585 @return {Promise}
586 */
587 install(options) {
588 this._processOptions(options);
589
590 this.hasPathToken = hasPathToken(this.files(this.options));
591
592 this.ui.writeLine(`installing ${this.name}`);
593
594 if (this.dryRun) {
595 this.ui.writeLine(chalk.yellow('You specified the `dry-run` flag, so no changes will be written.'));
596 }
597
598 this._normalizeEntityName(options.entity);
599 this._checkForPod(options.verbose);
600 this._checkInRepoAddonExists(options);
601
602 logger.info('START: processing blueprint: `%s`', this.name);
603 let start = new Date();
604 return this._process(options, this.beforeInstall, this.processFiles, this.afterInstall).finally(() =>
605 logger.info('END: processing blueprint: `%s` in (%dms)', this.name, new Date() - start)
606 );
607 },
608
609 /**
610 @method uninstall

Callers

nothing calls this directly

Calls 1

hasPathTokenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…