summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-09-07 17:35:15 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-09-07 17:35:15 +0000
commit124ca4521a57d904fd893f8ccf40bbf2f8967ffa (patch)
treef675512d056b190b411945fd48b35eb37440d556
parent93f34d3885c1221935b7fb5999b451ea6dc60213 (diff)
downloadbcfg2-124ca4521a57d904fd893f8ccf40bbf2f8967ffa.tar.gz
bcfg2-124ca4521a57d904fd893f8ccf40bbf2f8967ffa.tar.bz2
bcfg2-124ca4521a57d904fd893f8ccf40bbf2f8967ffa.zip
update to new Plugin API
2005/09/06 22:30:10-05:00 anl.gov!desai Rename: src/lib/Server/Generators/Svcmgr.py -> src/lib/Server/Plugins/Svcmgr.py (Logical change 1.300) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1222 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Svcmgr.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Svcmgr.py b/src/lib/Server/Plugins/Svcmgr.py
index e69de29bb..a1b6442ff 100644
--- a/src/lib/Server/Plugins/Svcmgr.py
+++ b/src/lib/Server/Plugins/Svcmgr.py
@@ -0,0 +1,19 @@
+'''This generator provides service mappings'''
+__revision__ = '$Revision$'
+
+from Bcfg2.Server.Plugin import Plugin, ScopedXMLFile
+
+class Svcmgr(Plugin):
+ '''This is a generator that handles service assignments'''
+ __name__ = 'Svcmgr'
+ __version__ = '$Id$'
+ __author__ = 'bcfg-dev@mcs.anl.gov'
+
+ def __init__(self, core, datastore):
+ Plugin.__init__(self, core, datastore)
+ self.svc = ScopedXMLFile("%s/etc/services.xml"%(datastore), self.core.fam)
+ self.Entries = self.svc.__provides__
+
+
+
+