(&self, started: bool)
| 1028 | } |
| 1029 | |
| 1030 | pub fn set_started(&self, started: bool) -> Result<()> { |
| 1031 | let state_path = self.state_path(); |
| 1032 | fs::write(state_path, serde_json::to_string(&State { started })?) |
| 1033 | .context("Failed to write state") |
| 1034 | } |
| 1035 | |
| 1036 | pub fn shared_dir(&self) -> PathBuf { |
| 1037 | self.workdir.join("shared") |
no test coverage detected