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

Function taskFor

lib/models/blueprint.js:1276–1283  ·  view source on GitHub ↗

Used to retrieve a task with the given name. Passes the new task the standard information available (like `ui`, `project`, etc). @method taskFor @param dasherizedName @public

(dasherizedName)

Source from the content-addressed store, hash-verified

1274 @public
1275 */
1276 taskFor(dasherizedName) {
1277 const Task = require(`../tasks/${dasherizedName}`);
1278
1279 return new Task({
1280 ui: this.ui,
1281 project: this.project,
1282 });
1283 },
1284
1285 /**
1286 Inserts the given content into a file. If the `contentsToInsert` string is already

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…