@private @method _process @param {Object} options @param {Function} beforeHook @param {Function} process @param {Function} afterHook
(options, beforeHook, process, afterHook)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…