aboutsummaryrefslogtreecommitdiffstats
path: root/example.py
diff options
context:
space:
mode:
authorLaurent Bachelier <laurent@bachelier.name>2009-11-30 00:49:21 +0100
committerLaurent Bachelier <laurent@bachelier.name>2009-11-30 00:49:21 +0100
commit278d4ea9f20a6e82bc7b5115c9989299e6885467 (patch)
tree4f9c084891a4aa76a1a430bcb661475e629e18bb /example.py
downloadconfman-278d4ea9f20a6e82bc7b5115c9989299e6885467.tar.xz
First import
The script is able to mirror a directory by creating symbolic links without destroying existing files.
Diffstat (limited to 'example.py')
-rwxr-xr-xexample.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/example.py b/example.py
new file mode 100755
index 0000000..ade298e
--- /dev/null
+++ b/example.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+from confman import ConfigSource
+
+c = ConfigSource("~/dotfiles", "/tmp/dotfiles-test")
+c.analyze()
+c.check()
+c.sync()
+
+from pprint import pprint
+pprint(c)