summaryrefslogtreecommitdiff
path: root/reconfigure/configs/resolv.py
diff options
context:
space:
mode:
Diffstat (limited to 'reconfigure/configs/resolv.py')
-rw-r--r--reconfigure/configs/resolv.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/reconfigure/configs/resolv.py b/reconfigure/configs/resolv.py
new file mode 100644
index 0000000..41802b9
--- /dev/null
+++ b/reconfigure/configs/resolv.py
@@ -0,0 +1,18 @@
+from reconfigure.configs.base import Reconfig
+from reconfigure.parsers import SSVParser
+from reconfigure.builders import BoundBuilder
+from reconfigure.items.resolv import ResolvData
+
+
+class ResolvConfig (Reconfig):
+ """
+ ``/etc/resolv.conf``
+ """
+
+ def __init__(self, **kwargs):
+ k = {
+ 'parser': SSVParser(maxsplit=1),
+ 'builder': BoundBuilder(ResolvData),
+ }
+ k.update(kwargs)
+ Reconfig.__init__(self, **k)