summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/plugins.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-02-26 14:05:37 +0100
committerMartin Sivak <msivak@redhat.com>2008-02-26 14:05:37 +0100
commit5f8b21baba2b6ab4b7accbd0114b103b243ce791 (patch)
tree4b5a7c3a27fb7ac7a1d53d6aa3cb32510a0e8099 /pyfirstaidkit/plugins.py
parent7757d10beb2f7b23a1c41e46408154f2f96e6e51 (diff)
downloadfirstaidkit-5f8b21baba2b6ab4b7accbd0114b103b243ce791.tar.gz
firstaidkit-5f8b21baba2b6ab4b7accbd0114b103b243ce791.tar.xz
firstaidkit-5f8b21baba2b6ab4b7accbd0114b103b243ce791.zip
Move the check for root environment into the interpret and utilize flag system for it.
Add --info and --list commands for getting the information about plugins.
Diffstat (limited to 'pyfirstaidkit/plugins.py')
-rw-r--r--pyfirstaidkit/plugins.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py
index e41f6f1..033e5cc 100644
--- a/pyfirstaidkit/plugins.py
+++ b/pyfirstaidkit/plugins.py
@@ -47,6 +47,8 @@ class Plugin(object):
name = "Plugin"
version = "0.0.0"
author = "nobody"
+ description = ""
+
#
# Dictionary that holds all the flows. The keys for each flow is its
# name. The flow will be addressed by this name. The plugin developer
@@ -375,7 +377,7 @@ class PluginSystem(object):
def list(self):
"""Return the list of imported plugins"""
return self._plugins.keys()
-
+
def autorun(self, plugin, flow = None, dependencies = True):
"""Perform automated run of plugin with condition checking
returns - True if conditions are fully satisfied
@@ -422,6 +424,6 @@ returns - True if conditions are fully satisfied
return True
def getplugin(self, plugin):
- """Get instance of plugin, so we can call the steps manually"""
+ """Get top level class of plugin, so we can create the instance and call the steps manually"""
return self._plugins[plugin].get_plugin()