MCPcopy Index your code
hub / github.com/coder/mux / constructor

Method constructor

src/node/runtime/multiProjectRuntime.ts:45–61  ·  view source on GitHub ↗
(
    private readonly containerManager: ContainerManager,
    private readonly projectRuntimes: MultiProjectRuntimeEntry[],
    workspaceName: string
  )

Source from the content-addressed store, hash-verified

43 private readonly containerPath: string;
44
45 constructor(
46 private readonly containerManager: ContainerManager,
47 private readonly projectRuntimes: MultiProjectRuntimeEntry[],
48 workspaceName: string
49 ) {
50 assert(projectRuntimes.length > 0, "MultiProjectRuntime requires at least one project runtime");
51
52 this.primaryRuntime = projectRuntimes[0].runtime;
53 this.containerPath = containerManager.getContainerPath(workspaceName);
54 this.createFlags = this.primaryRuntime.createFlags;
55
56 this.finalizeConfig = this.primaryRuntime.finalizeConfig?.bind(this.primaryRuntime);
57 this.validateBeforePersist = this.primaryRuntime.validateBeforePersist?.bind(
58 this.primaryRuntime
59 );
60 this.postCreateSetup = this.primaryRuntime.postCreateSetup?.bind(this.primaryRuntime);
61 }
62
63 async ensureReady(options?: EnsureReadyOptions): Promise<EnsureReadyResult> {
64 for (const projectRuntime of this.projectRuntimes) {

Callers

nothing calls this directly

Calls 2

getContainerPathMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected