aboutsummaryrefslogtreecommitdiffstats
path: root/example/sync.py
blob: 7cf0f728b060db94806fe2f48c6091b762997776 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
import os
import sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)

from confman import ConfigSource

options = {
    'tags': ['desktop'],
    'hostname': 'test',
}

samples_path = os.path.join(os.path.dirname(__file__), 'src')

c = ConfigSource(samples_path, "/tmp/dotfiles-test", None, options)
c.sync()

print
print repr(c)