| Conditions | 6 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 56 | def print_footer(): |
||
| 57 | """ |
||
| 58 | Printing console footer |
||
| 59 | :return: |
||
| 60 | """ |
||
| 61 | if system.config['dry_run']: |
||
| 62 | _message = 'Successfully executed dry run' |
||
| 63 | elif not system.config['keep_dump'] and \ |
||
| 64 | not system.config['is_same_client'] and \ |
||
| 65 | not mode.is_import(): |
||
| 66 | _message = 'Successfully synchronized databases' |
||
| 67 | elif mode.is_import(): |
||
| 68 | _message = 'Successfully imported database dump' |
||
| 69 | else: |
||
| 70 | _message = 'Successfully created database dump' |
||
| 71 | |||
| 72 | output.message( |
||
| 73 | output.Subject.INFO, |
||
| 74 | _message, |
||
| 75 | True, |
||
| 76 | True |
||
| 77 | ) |
||
| 78 |