Conditions | 1 |
Total Lines | 32 |
Code Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
15 | def __init__(self, |
||
16 | config_file=None, |
||
17 | verbose=False, |
||
18 | mute=False, |
||
19 | host_file=None, |
||
20 | config=None, |
||
21 | args=None): |
||
22 | """ |
||
23 | Initialization |
||
24 | :param config_file: |
||
25 | :param verbose: |
||
26 | :param mute: |
||
27 | :param host_file: |
||
28 | :param config: |
||
29 | :param args: |
||
30 | """ |
||
31 | info.print_header(mute) |
||
32 | system.check_args_options( |
||
33 | config_file=config_file, |
||
34 | host_file=host_file, |
||
35 | verbose=verbose, |
||
36 | mute=mute |
||
37 | ) |
||
38 | system.get_configuration(config, None) |
||
39 | # workaround for extending config with args |
||
40 | system.config=helper.extend_config(args) |
||
41 | helper.adjust_sync_mode() |
||
42 | helper.check_rsync_version() |
||
43 | helper.check_sshpass_version() |
||
44 | helper.check_authorizations() |
||
45 | process.transfer_files() |
||
46 | info.print_footer() |
||
47 |