summaryrefslogtreecommitdiff
path: root/reconfigure/configs/hosts.py
blob: fbb1c3c37a0068b4c01fcecaafde5f2b131ff17f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from reconfigure.configs.base import Reconfig
from reconfigure.parsers import SSVParser
from reconfigure.builders import BoundBuilder
from reconfigure.items.hosts import HostsData


class HostsConfig (Reconfig):
    """
    ``/etc/hosts``
    """
    def __init__(self, **kwargs):
        k = {
            'parser': SSVParser(),
            'builder': BoundBuilder(HostsData),
        }
        k.update(kwargs)
        Reconfig.__init__(self, **k)