aboutsummaryrefslogtreecommitdiffstats
path: root/example/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/sync.py')
-rwxr-xr-xexample/sync.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/example/sync.py b/example/sync.py
new file mode 100755
index 0000000..7cf0f72
--- /dev/null
+++ b/example/sync.py
@@ -0,0 +1,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)