()
| 77 | }, |
| 78 | check, |
| 79 | async install() { |
| 80 | if (state.status !== "ready") throw new Error("Update is not ready to install") |
| 81 | const version = state.version |
| 82 | transition({ status: "installing", version }) |
| 83 | await input |
| 84 | .stop() |
| 85 | .then(() => { |
| 86 | input.backend.quitAndInstall() |
| 87 | transition({ status: "ready", version }) |
| 88 | }) |
| 89 | .catch((error) => { |
| 90 | transition({ status: "ready", version }) |
| 91 | throw error |
| 92 | }) |
| 93 | }, |
| 94 | } |
| 95 | } |
| 96 |
nothing calls this directly
no test coverage detected