summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-08-08 12:33:46 +0300
committermakkalot <makkalot@gmail.com>2008-08-08 12:33:46 +0300
commit5f2bc088a77b19902e741caa9baded30703dc99a (patch)
tree83dbb7c6fbc78392b6a072401e80c99a93a65ef6
parenta253e617687bcc0e4415a425557bfa961b2178c9 (diff)
downloadfunc-5f2bc088a77b19902e741caa9baded30703dc99a.tar.gz
func-5f2bc088a77b19902e741caa9baded30703dc99a.tar.xz
func-5f2bc088a77b19902e741caa9baded30703dc99a.zip
export the rpms module
-rw-r--r--func/minion/modules/rpms.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/func/minion/modules/rpms.py b/func/minion/modules/rpms.py
index 66d9129..f271406 100644
--- a/func/minion/modules/rpms.py
+++ b/func/minion/modules/rpms.py
@@ -67,3 +67,38 @@ class RpmModule(func_module.FuncModule):
else:
results.append([name, epoch, version, release, arch])
return results
+
+ def register_method_args(self):
+ """
+ Implementing the method argument getter
+ """
+
+ return {
+ 'inventory':{
+ 'args':{
+ 'flatten':{
+ 'type':'boolean',
+ 'optional':True,
+ 'default':True,
+ 'description':"Print clean in difss"
+ }
+ },
+ 'description':"Returns information on all installed packages"
+ },
+ 'glob':{
+ 'args':{
+ 'pattern':{
+ 'type':'string',
+ 'optional':False,
+ 'description':"The glob packet pattern"
+ },
+ 'flatten':{
+ 'type':'boolean',
+ 'optional':True,
+ 'default':True,
+ 'description':"Print clean in difss"
+ }
+ },
+ 'description':"Return a list of installed packages that match a pattern"
+ }
+ }