MCPcopy
hub / github.com/coder/mux / ensureMuxCoderSSHConfig

Method ensureMuxCoderSSHConfig

src/node/services/coderService.ts:1534–1545  ·  view source on GitHub ↗

* Ensure mux-owned SSH config is set up for Coder workspaces. * Run before every Coder workspace connection (idempotent).

()

Source from the content-addressed store, hash-verified

1532 * Run before every Coder workspace connection (idempotent).
1533 */
1534 async ensureMuxCoderSSHConfig(): Promise<void> {
1535 log.debug("Ensuring mux-owned Coder SSH config");
1536 const coderBinary = await this.resolveCoderBinaryPath();
1537 if (coderBinary == null) {
1538 log.debug("Skipping mux-owned Coder SSH config setup because coder binary is unavailable");
1539 return;
1540 }
1541
1542 await ensureMuxCoderSSHConfigFile({
1543 coderBinaryPath: coderBinary,
1544 });
1545 }
1546}
1547
1548// Singleton instance

Callers 3

initializeMethod · 0.80
postCreateSetupMethod · 0.80

Calls 3

debugMethod · 0.80

Tested by

no test coverage detected