summaryrefslogtreecommitdiff
path: root/reconfigure/configs/supervisor.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/configs/supervisor.py')
-rw-r--r--reconfigure/configs/supervisor.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/reconfigure/configs/supervisor.py b/reconfigure/configs/supervisor.py
new file mode 100644
index 0000000..ef0fc95
--- /dev/null
+++ b/reconfigure/configs/supervisor.py
@@ -0,0 +1,20 @@
+from reconfigure.configs.base import Reconfig
+from reconfigure.parsers import IniFileParser
+from reconfigure.includers import SupervisorIncluder
+from reconfigure.builders import BoundBuilder
+from reconfigure.items.supervisor import SupervisorData
+
+
+class SupervisorConfig (Reconfig):
+ """
+ ``/etc/supervisor/supervisord.conf``
+ """
+
+ def __init__(self, **kwargs):
+ k = {
+ 'parser': IniFileParser(),
+ 'includer': SupervisorIncluder(),
+ 'builder': BoundBuilder(SupervisorData),
+ }
+ k.update(kwargs)
+ Reconfig.__init__(self, **k)