| Trees | Indices | Help |
|
|---|
|
|
1 # Copyright 2005-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3
4 """Check and clean old logs in the PORT_LOGDIR.
5 """
6
7
8 module_spec = {
9 'name': 'logs',
10 'description': __doc__,
11 'provides':{
12 'module1': {
13 'name': "logs",
14 'class': "CleanLogs",
15 'description': __doc__,
16 'functions': ['check','clean'],
17 'func_desc': {
18 'clean': {
19 "short": "-C", "long": "--clean",
20 "help": "Cleans out logs more than 7 days old (cleanlogs only)" + \
21 " module-options: -t, -p",
22 'status': "Cleaning %s",
23 'func': 'clean'
24 },
25 'time': {
26 "short": "-t", "long": "--time",
27 "help": "(cleanlogs only): -t, --time Delete logs older than NUM of days",
28 'status': "",
29 'action': 'store',
30 'type': 'int',
31 'dest': 'NUM',
32 'callback': None,
33 'callback_kwargs': None,
34 'func': 'clean'
35 },
36 'pretend': {
37 "short": "-p", "long": "--pretend",
38 "help": "(cleanlogs only): -p, --pretend Output logs that would be deleted",
39 'status': "",
40 'action': 'store_true',
41 'dest': 'pretend',
42 'callback': None,
43 'callback_kwargs': None,
44 'func': 'clean'
45 }
46 }
47 }
48 }
49 }
50
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat May 18 16:59:39 2013 | http://epydoc.sourceforge.net |