summaryrefslogtreecommitdiffstats
path: root/plugins/sample3Plugin/sample3Plugin.py
diff options
context:
space:
mode:
authorJoel Andres Granados <jgranado@redhat.com>2007-11-23 15:41:52 +0100
committerJoel Andres Granados <jgranado@redhat.com>2007-11-23 15:41:52 +0100
commit6ad376ee2a4cb6389a1a0f30279c8031180d48e4 (patch)
treefd21acb25e15c0782358ae97be7f9eaac5ec0bce /plugins/sample3Plugin/sample3Plugin.py
parent165a0ed22f453e9347a698d6411725c8d46caff5 (diff)
downloadfirstaidkit-6ad376ee2a4cb6389a1a0f30279c8031180d48e4.tar.gz
firstaidkit-6ad376ee2a4cb6389a1a0f30279c8031180d48e4.tar.xz
firstaidkit-6ad376ee2a4cb6389a1a0f30279c8031180d48e4.zip
Take the plugin info attributes aoutside the __init__. This allows us
to query plugin information without instantiating.
Diffstat (limited to 'plugins/sample3Plugin/sample3Plugin.py')
-rw-r--r--plugins/sample3Plugin/sample3Plugin.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/sample3Plugin/sample3Plugin.py b/plugins/sample3Plugin/sample3Plugin.py
index 2fbbe30..319fde4 100644
--- a/plugins/sample3Plugin/sample3Plugin.py
+++ b/plugins/sample3Plugin/sample3Plugin.py
@@ -21,8 +21,11 @@ import subprocess
class Sample3Plugin(Plugin):
"""This plugin will use a shell script as backend."""
- def __init__(self):
- Plugin.__init__(self)
+ name = "Sample3Plugin"
+ version = "0.0.1"
+ author = "Joel Andres Granados"
+ def __init__(self, flow):
+ Plugin.__init__(self, flow)
def prepare(self):
# Prepare command line.
@@ -84,7 +87,3 @@ class Sample3Plugin(Plugin):
self._result=ReturnValueFalse
elif out[-4:] == "true":
self._result=ReturnValueTrue
-
-def get_plugin():
- return Sample3Plugin()
-