* Assert there is no other operation is in progress, i.e., the state is not * `*ing`, such as `starting` or `stopping`. * * @param op - The operation name, such as 'boot', 'start', or 'stop'
(op: string)
| 264 | * @param op - The operation name, such as 'boot', 'start', or 'stop' |
| 265 | */ |
| 266 | protected assertNotInProcess(op: string) { |
| 267 | assert( |
| 268 | !this._state.endsWith('ing'), |
| 269 | `Cannot ${op} the application as it is ${this._state}.`, |
| 270 | ); |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Assert current state of the application to be one of the expected values |