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

Function ensureInstrumentation

lib/models/project.js:749–760  ·  view source on GitHub ↗
(cli, ui)

Source from the content-addressed store, hash-verified

747Project.NotFoundError = NotFoundError;
748
749function ensureInstrumentation(cli, ui) {
750 if (cli && cli.instrumentation) {
751 return cli.instrumentation;
752 }
753
754 // Instrumentation `require` needs to occur inline due to circular dependencies between
755 // Instrumentation => getConfig => Project => Instrumentation. getConfig is used in Project to
756 // get the project root.
757 let Instrumentation = require('./instrumentation');
758 // created without a `cli` object (possibly from deprecated `Brocfile.js`)
759 return new Instrumentation({ ui, initInstrumentation: null });
760}
761
762function ensureUI(_ui) {
763 let ui = _ui;

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…