summaryrefslogtreecommitdiff
path: root/reconfigure/builders/base.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
commitff1408420159488a106492ccd11dd234967029b6 (patch)
tree473420cee1c5229a427ec4cafead1aa6c0a26800 /reconfigure/builders/base.py
Imported Upstream version 0.1.29
Diffstat (limited to 'reconfigure/builders/base.py')
-rw-r--r--reconfigure/builders/base.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/reconfigure/builders/base.py b/reconfigure/builders/base.py
new file mode 100644
index 0000000..5708f72
--- /dev/null
+++ b/reconfigure/builders/base.py
@@ -0,0 +1,16 @@
+class BaseBuilder (object):
+ """
+ A base class for builders
+ """
+
+ def build(self, tree):
+ """
+ :param tree: :class:`reconfigure.nodes.Node` tree
+ :returns: Data tree
+ """
+
+ def unbuild(self, tree):
+ """
+ :param tree: Data tree
+ :returns: :class:`reconfigure.nodes.Node` tree
+ """