aboutsummaryrefslogtreecommitdiffstats
path: root/src/example_plugins/example.py
diff options
context:
space:
mode:
authorsconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-07-17 15:12:16 +0000
committersconklin <sconklin@ef72aa8b-4018-0410-8976-d6e080ef94d8>2006-07-17 15:12:16 +0000
commit6272e3abf035e9a24bb37a4e27a12c35bb87cb3f (patch)
tree013a799c235abd64652c6e317285f55ee3ea1239 /src/example_plugins/example.py
parent84e7def56d181cccce5b5afa05035cfe94e50022 (diff)
downloadsos-6272e3abf035e9a24bb37a4e27a12c35bb87cb3f.tar.gz
cleaned up example plugins
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@16 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'src/example_plugins/example.py')
-rwxr-xr-xsrc/example_plugins/example.py22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/example_plugins/example.py b/src/example_plugins/example.py
index bf461c44..98c40a5d 100755
--- a/src/example_plugins/example.py
+++ b/src/example_plugins/example.py
@@ -1,10 +1,6 @@
-#!/usr/bin/env python
-
## example.py
## An example sos plugin
-## Copyright (C) 2006 Steve Conklin <sconklin@redhat.com>
-
### This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
@@ -35,22 +31,12 @@ class example(sos.plugintools.PluginBase):
All plugins will use collect(), some will use analyze(), few will override report()
"""
- optionList = []
- copiedFiles = []
- copiedDirs = []
- executedCommands = []
- alerts = []
- customText = ""
- cInfo = None
- piName = None
- optNames = []
- optParms = []
# Add your options here, indicate whether they are slow to run, and set whether they are enabled by default
- # Options are dictionaries that conatin a short name, long desc, speed, and whether they are enabled by default
+ # Options are python dictionaries that conatin a short name, long description, speed, and whether they are enabled by default
optionList = [("init.d", 'Gathers the init.d directory', 'slow', 0),
- ('Option 2', 'Gathers information about each follicle on every toe', 'slow', 0),
- ('Option 3', 'Gathers toenail polish color', 'fast', 0)]
+ ('follicles', 'Gathers information about each follicle on every toe', 'slow', 0),
+ ('color', 'Gathers toenail polish color', 'fast', 0)]
def collect(self):
''' First phase - Collect all the information we need.
@@ -104,5 +90,3 @@ class example(sos.plugintools.PluginBase):
# here using sosAddCustomText() and sosAddAlert()
# This method returns html that will be included inline in the report
# """
-
-