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

Function _process

lib/models/blueprint.js:457–473  ·  view source on GitHub ↗

@private @method _process @param {Object} options @param {Function} beforeHook @param {Function} process @param {Function} afterHook

(options, beforeHook, process, afterHook)

Source from the content-addressed store, hash-verified

455 @param {Function} afterHook
456 */
457 async _process(options, beforeHook, process, afterHook) {
458 let intoDir = options.target;
459
460 let locals = await this._locals(options);
461
462 // run beforeInstall/beforeUninstall userland hooks
463 await beforeHook.call(this, options, locals);
464
465 // gather fileInfos to be processed
466 let fileInfos = await process.call(this, intoDir, locals, options);
467
468 // commit changes for each FileInfo (with prompting as needed)
469 await Promise.all(fileInfos.map((info) => this._commit(info)));
470
471 // run afterInstall/afterUninstall userland hooks
472 await afterHook.call(this, options);
473 },
474
475 /**
476 @private

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…