| @@ 170-177 (lines=8) @@ | ||
| 167 | * |
|
| 168 | * @param \phpbu\App\Event\Backup\Start $event |
|
| 169 | */ |
|
| 170 | public function onBackupStart(Event\Backup\Start $event) |
|
| 171 | { |
|
| 172 | $backup = $event->getConfiguration(); |
|
| 173 | $this->numBackups++; |
|
| 174 | if ($this->debug) { |
|
| 175 | $this->write(Util\Cli::formatWithAsterisk('backup: [' . $backup->getSource()->type . '] ')); |
|
| 176 | } |
|
| 177 | } |
|
| 178 | ||
| 179 | /** |
|
| 180 | * Backup failed event. |
|
| @@ 208-215 (lines=8) @@ | ||
| 205 | * |
|
| 206 | * @param \phpbu\App\Event\Check\Start $event |
|
| 207 | */ |
|
| 208 | public function onCheckStart(Event\Check\Start $event) |
|
| 209 | { |
|
| 210 | $check = $event->getConfiguration(); |
|
| 211 | $this->numChecks++; |
|
| 212 | if ($this->debug) { |
|
| 213 | $this->write(Util\Cli::formatWithAsterisk('check: [' . $check->type . '] ')); |
|
| 214 | } |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Check failed event. |
|
| @@ 246-253 (lines=8) @@ | ||
| 243 | * |
|
| 244 | * @param \phpbu\App\Event\Crypt\Start $event |
|
| 245 | */ |
|
| 246 | public function onCryptStart(Event\Crypt\Start $event) |
|
| 247 | { |
|
| 248 | $crypt = $event->getConfiguration(); |
|
| 249 | $this->numCrypts++; |
|
| 250 | if ($this->debug) { |
|
| 251 | $this->write(Util\Cli::formatWithAsterisk('crypt: [' . $crypt->type . '] ')); |
|
| 252 | } |
|
| 253 | } |
|
| 254 | ||
| 255 | /** |
|
| 256 | * Crypt skipped event. |
|
| @@ 296-303 (lines=8) @@ | ||
| 293 | * |
|
| 294 | * @param \phpbu\App\Event\Sync\Start $event |
|
| 295 | */ |
|
| 296 | public function onSyncStart(Event\Sync\Start $event) |
|
| 297 | { |
|
| 298 | $sync = $event->getConfiguration(); |
|
| 299 | $this->numSyncs++; |
|
| 300 | if ($this->debug) { |
|
| 301 | $this->write(Util\Cli::formatWithAsterisk('sync: [' . $sync->type . '] ')); |
|
| 302 | } |
|
| 303 | } |
|
| 304 | ||
| 305 | /** |
|
| 306 | * Sync skipped event. |
|
| @@ 346-353 (lines=8) @@ | ||
| 343 | * |
|
| 344 | * @param \phpbu\App\Event\Cleanup\Start $event |
|
| 345 | */ |
|
| 346 | public function onCleanupStart(Event\Cleanup\Start $event) |
|
| 347 | { |
|
| 348 | $cleanup = $event->getConfiguration(); |
|
| 349 | $this->numCleanups++; |
|
| 350 | if ($this->debug) { |
|
| 351 | $this->write(Util\Cli::formatWithAsterisk('cleanup: [' . $cleanup->type . '] ')); |
|
| 352 | } |
|
| 353 | } |
|
| 354 | ||
| 355 | /** |
|
| 356 | * Cleanup skipped event. |
|