summaryrefslogtreecommitdiff
path: root/reconfigure/includers/supervisor.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/includers/supervisor.py')
-rw-r--r--reconfigure/includers/supervisor.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/reconfigure/includers/supervisor.py b/reconfigure/includers/supervisor.py
new file mode 100644
index 0000000..2314cd9
--- /dev/null
+++ b/reconfigure/includers/supervisor.py
@@ -0,0 +1,11 @@
+from reconfigure.includers.auto import AutoIncluder
+from reconfigure.nodes import Node, PropertyNode
+
+
+class SupervisorIncluder (AutoIncluder):
+ def is_include(self, node):
+ if node.name == 'include':
+ return node.get('files').value
+
+ def remove_include(self, node):
+ return Node('include', children=[PropertyNode('files', node.files)])