| Conditions | 6 |
| Total Lines | 19 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | #!/usr/bin/env python3 |
||
| 29 | def print_footer(): |
||
| 30 | """ |
||
| 31 | Printing console footer |
||
| 32 | :return: |
||
| 33 | """ |
||
| 34 | if system.config['dry_run']: |
||
| 35 | _message = 'Successfully executed dry run' |
||
| 36 | elif not system.config['keep_dump'] and not system.config['is_same_client'] and not mode.is_import(): |
||
| 37 | _message = 'Successfully synchronized databases' |
||
| 38 | elif mode.is_import(): |
||
| 39 | _message = 'Successfully imported database dump' |
||
| 40 | else: |
||
| 41 | _message = 'Successfully created database dump' |
||
| 42 | |||
| 43 | output.message( |
||
| 44 | output.Subject.INFO, |
||
| 45 | _message, |
||
| 46 | True, |
||
| 47 | True |
||
| 48 | ) |
||