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

Function insertIntoFile

lib/models/blueprint.js:1329–1332  ·  view source on GitHub ↗

Inserts the given content into a file. If the `contentsToInsert` string is already present in the current contents, the file will not be changed unless `force` option is passed. If `options.before` is specified, `contentsToInsert` will be inserted before the first instance of that s

(pathRelativeToProjectRoot, contentsToInsert, providedOptions)

Source from the content-addressed store, hash-verified

1327 @return {Promise}
1328 */
1329 insertIntoFile(pathRelativeToProjectRoot, contentsToInsert, providedOptions) {
1330 let fullPath = path.join(this.project.root, pathRelativeToProjectRoot);
1331 return insertIntoFile(fullPath, contentsToInsert, providedOptions);
1332 },
1333
1334 _printCommand: printCommand,
1335

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…