MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sshRebootGuest

Function sshRebootGuest

e2e/src/vm/tart.ts:51–60  ·  view source on GitHub ↗
(ip: string)

Source from the content-addressed store, hash-verified

49 * the reconnecting tunnel and a health poll confirm recovery.
50 */
51export const sshRebootGuest = async (ip: string): Promise<void> => {
52 await execFileP(SSHPASS, [
53 "-p",
54 GUEST_PASS,
55 "ssh",
56 ...SSH_OPTS,
57 `${GUEST_USER}@${ip}`,
58 "sudo reboot",
59 ]).catch(() => undefined); // the connection drops mid-call
60};
61
62const baseImage = (os: "macos" | "linux"): string =>
63 os === "macos"

Callers 1

cliTargetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected