summaryrefslogtreecommitdiff
path: root/reconfigure/builders/bound.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/bound.py
Imported Upstream version 0.1.29
Diffstat (limited to 'reconfigure/builders/bound.py')
-rw-r--r--reconfigure/builders/bound.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/reconfigure/builders/bound.py b/reconfigure/builders/bound.py
new file mode 100644
index 0000000..a429a08
--- /dev/null
+++ b/reconfigure/builders/bound.py
@@ -0,0 +1,18 @@
+from reconfigure.builders.base import BaseBuilder
+
+
+class BoundBuilder (BaseBuilder):
+ """
+ A builder that uses :class:`reconfigure.items.bound.BoundData` to build stuff
+
+ :param root_class: a ``BoundData`` class that used as processing root
+ """
+
+ def __init__(self, root_class):
+ self.root_class = root_class
+
+ def build(self, nodetree):
+ return self.root_class(nodetree)
+
+ def unbuild(self, tree):
+ pass