MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / processFiles

Function processFiles

lib/models/blueprint.js:889–914  ·  view source on GitHub ↗

@method processFiles @param {String} intoDir @param {Object} templateVariables @param {Object} options @return {Promise }

(intoDir, templateVariables, options)

Source from the content-addressed store, hash-verified

887 @return {Promise<FileInfo[]>}
888 */
889 processFiles(intoDir, templateVariables, options) {
890 let files = this._getFilesForInstall(templateVariables.targetFiles);
891 let fileInfos = this._getFileInfos(files, intoDir, templateVariables, options);
892 this._checkForNoMatch(fileInfos, templateVariables.rawArgs);
893
894 this._ignoreUpdateFiles();
895
896 let fileInfosToRemove = this._getFileInfos(this.filesToRemove, intoDir, templateVariables);
897
898 fileInfosToRemove = finishProcessingForUninstall(fileInfosToRemove);
899
900 return Promise.all(fileInfos.filter(isValidFile).map(prepareConfirm))
901 .then(finishProcessingForInstall)
902 .then((fileInfos) => {
903 return Promise.all(
904 fileInfos.map((info) => {
905 if (this.shouldConvertToJS(this.options, info)) {
906 return this.convertToJS(info);
907 }
908
909 return info;
910 })
911 );
912 })
913 .then((fileInfos) => fileInfos.concat(fileInfosToRemove));
914 },
915
916 /**
917 @method processFilesForUninstall

Callers

nothing calls this directly

Calls 3

filterMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…