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

Method constructor

tests/helpers/package-cache.js:217–230  ·  view source on GitHub ↗
(rootPath)

Source from the content-addressed store, hash-verified

215 */
216module.exports = class PackageCache {
217 constructor(rootPath) {
218 this.rootPath = rootPath || originalWorkingDirectory;
219
220 let configPath = path.join(this.rootPath, 'tmp', 'package-cache.json');
221 this._conf = new Configstore(
222 'package-cache',
223 {},
224 {
225 configPath,
226 }
227 );
228
229 this._cleanDirs();
230 }
231
232 get dirs() {
233 return this._conf.all;

Callers

nothing calls this directly

Calls 1

_cleanDirsMethod · 0.95

Tested by

no test coverage detected