summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Generators/servicemgr.py
blob: f8475711103e5b1e5bb404a59e649ca247002dd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
'''This generator provides service mappings'''
__revision__ = '$Revision$'

from Bcfg2.Server.Generator import Generator, ScopedXMLFile

class servicemgr(Generator):
    '''This is a generator that handles service assignments'''
    __name__ = 'servicemgr'
    __version__ = '$Id$'
    __author__ = 'bcfg-dev@mcs.anl.gov'

    def __init__(self, core, datastore):
        Generator.__init__(self, core, datastore)
        self.svc = ScopedXMLFile("%s/etc/services.xml"%(datastore), self.core.fam)
        self.__provides__ = self.svc.__provides__