summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2008-01-11 13:10:18 +0100
committerJoel Andres Granados <jgranado@redhat.com>2008-01-11 13:10:18 +0100
commit9fe6ef1749cc468cb48418bde27e86f5a9226319 (patch)
treeb5f09b3f4307fba5590567500486a882743961a3 /plugins
parent0ca8e93f08f7e639bb757b2f3691fc7c2932ec96 (diff)
downloadfirstaidkit-9fe6ef1749cc468cb48418bde27e86f5a9226319.tar.gz
firstaidkit-9fe6ef1749cc468cb48418bde27e86f5a9226319.tar.xz
firstaidkit-9fe6ef1749cc468cb48418bde27e86f5a9226319.zip
Specify that the firstaidkit plugin man page is for plugin development.
Organise the packaging. (firstaidkit, firstaidkit-devel and firstaidkit-plugin-all) Comment in spec file on how to create the tar file. Use the reporting code in sample1Plugin.py script make a general way of creating the default config stuff
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sample1Plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/sample1Plugin.py b/plugins/sample1Plugin.py
index e71e4e5..9671229 100644
--- a/plugins/sample1Plugin.py
+++ b/plugins/sample1Plugin.py
@@ -25,24 +25,31 @@ class Sample1Plugin(Plugin):
author = "Joel Andres Granados"
def __init__(self, *args, **kwargs):
Plugin.__init__(self, *args, **kwargs)
+ self.reporting = kwargs.get('reporting')
def prepare(self):
self._result=ReturnValueTrue
+ self.reporting.info("Sample1Plugin in Prepare task", self)
def backup(self):
self._result=ReturnValueTrue
+ self.reporting.info("Sample1Plugin in backup task", self)
def restore(self):
self._result=ReturnValueTrue
+ self.reporting.info("Sample1Plugin in Restore task", self)
def diagnose(self):
self._result=ReturnValueTrue
+ self.reporting.info("Sample1Plugin in diagnose task", self)
def fix(self):
self._result=ReturnValueFalse
+ self.reporting.info("Sample1Plugin in Fix task", self)
def clean(self):
self._result=ReturnValueTrue
+ self.reporting.info("Sample1Plugin in Clean task", self)
def get_plugin():
return Sample1Plugin