summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Generators/Svcmgr.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Server/Generators/Svcmgr.py b/src/lib/Server/Generators/Svcmgr.py
index e69de29bb..7b2d89193 100644
--- a/src/lib/Server/Generators/Svcmgr.py
+++ b/src/lib/Server/Generators/Svcmgr.py
@@ -0,0 +1,19 @@
+'''This generator provides service mappings'''
+__revision__ = '$Revision$'
+
+from Bcfg2.Server.Generator import Generator, ScopedXMLFile
+
+class Svcmgr(Generator):
+ '''This is a generator that handles service assignments'''
+ __name__ = 'Svcmgr'
+ __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__
+
+
+
+