aboutsummaryrefslogtreecommitdiffstats
path: root/example.py
blob: ccfc81080e38fb6ce725907dbd3dfe5a92385c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
from confman import ConfigSource

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

from sys import argv
from os import path
samples_path = path.join(path.dirname(argv[0]), 'samples')

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

print
from pprint import pprint
pprint(c)