(&self, args: &[&str], input: &[u8], reactor: bool)
| 47 | } |
| 48 | |
| 49 | fn fire(&self, args: &[&str], input: &[u8], reactor: bool) -> Output { |
| 50 | let mut command = self.command(args); |
| 51 | if reactor { |
| 52 | command.env("ATOMIC_SERVICE", "reactor"); |
| 53 | } |
| 54 | let mut child = command |
| 55 | .stdin(Stdio::piped()) |
| 56 | .stdout(Stdio::piped()) |
| 57 | .stderr(Stdio::piped()) |
| 58 | .spawn() |
| 59 | .unwrap(); |
| 60 | child.stdin.take().unwrap().write_all(input).unwrap(); |
| 61 | child.wait_with_output().unwrap() |
| 62 | } |
| 63 | |
| 64 | fn health(&self) -> HookHealth { |
| 65 | let store = atomic_repository::redb_change_store::RedbChangeStore::open_existing( |
no test coverage detected