@edgible-team/sdk
    Preparing search index...

    Interface ProvisionVm

    The slice of VirtualMachine the provisioner drives (fakeable in tests).

    interface ProvisionVm {
        exec(
            command: string,
            options?: { timeout?: number },
        ): Promise<ExecResult>;
        getGuestPath(key: GuestPathKey): string;
        start(): Promise<void>;
        stop(): Promise<void>;
        syncCode(projectRoot: string, opts?: SyncCodeOptions): Promise<void>;
    }
    Index

    Methods

    • Run a shell command in the guest over SSH. Never rejects; check exitCode.

      Parameters

      • command: string
      • Optionaloptions: { timeout?: number }

      Returns Promise<ExecResult>