summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugin.py
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-04-03 12:47:24 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-04-03 12:47:24 +0000
commit6c6b0ad8d13ddcea625dbd3130ea0b9d4bc00ba8 (patch)
treeda4d12d4e2a95333f39f7292bda0faf76920c007 /src/lib/Server/Plugin.py
parent74e5a39920606a8c6e4ef24c351480dba81f11eb (diff)
downloadbcfg2-6c6b0ad8d13ddcea625dbd3130ea0b9d4bc00ba8.tar.gz
bcfg2-6c6b0ad8d13ddcea625dbd3130ea0b9d4bc00ba8.tar.bz2
bcfg2-6c6b0ad8d13ddcea625dbd3130ea0b9d4bc00ba8.zip
Move logic for repository interactions in bcfg2-admin pull into individual plugins
(This change introduces all new infrastructure, and is in preparation for doing support in SSHbase) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@3005 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Plugin.py')
-rw-r--r--src/lib/Server/Plugin.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/Server/Plugin.py b/src/lib/Server/Plugin.py
index 9a3b73e82..3c32dcad7 100644
--- a/src/lib/Server/Plugin.py
+++ b/src/lib/Server/Plugin.py
@@ -59,6 +59,16 @@ class Plugin(object):
'''This is the slow-path handler for configuration entry binding'''
raise PluginExecutionError
+ def AcceptEntry(self, metadata, entry_type, entry_name, data):
+ '''This is the null per-plugin implementation
+ of bcfg2-admin pull'''
+ raise PluginExecutionError
+
+ def CommitChanges(self):
+ '''Handle revctl commits, if needed'''
+ # not implemented yet
+ pass
+
# the rest of the file contains classes for coherent file caching
class FileBacked(object):