test   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 21
dl 0
loc 28
rs 10
c 0
b 0
f 0
1
from file_sync_tool import sync
2
3
if __name__ == "__main__":
4
    sync.Sync(
5
        mute=True,
6
        config={
7
            "target": {
8
            },
9
            "origin": {
10
                "host": "www1",
11
                "user": "user",
12
                "password": "password"
13
            },
14
            "files": {
15
                "config": [
16
                    {
17
                        "origin": "/var/www/html/tests/files/www1/dir1/",
18
                        "target": "/var/www/html/tests/files/www2/dir1/",
19
                        "exclude": [
20
                          "dummy2.file"
21
                        ]
22
                    },
23
                    {
24
                        "origin": "/var/www/html/tests/files/www1/dir2/",
25
                        "target": "/var/www/html/tests/files/www2/dir2/",
26
                        "exclude": [
27
                            "dummy2.file"
28
                        ]
29
                    }
30
                ]
31
            }
32
    })
33