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

Method constructor

lib/models/watcher.js:18–27  ·  view source on GitHub ↗
(_options, build)

Source from the content-addressed store, hash-verified

16
17module.exports = class Watcher extends CoreObject {
18 constructor(_options, build) {
19 if (build !== ConstructedFromBuilder) {
20 throw new Error('instantiate Watcher with (await Watcher.build()).watcher, not new Watcher()');
21 }
22
23 super(_options);
24
25 this.verbose = true;
26 this.serving = _options.serving;
27 }
28
29 static async build(_options) {
30 let watcher = new this(_options, ConstructedFromBuilder);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected