From 5f2bc088a77b19902e741caa9baded30703dc99a Mon Sep 17 00:00:00 2001 From: makkalot Date: Fri, 8 Aug 2008 12:33:46 +0300 Subject: export the rpms module --- func/minion/modules/rpms.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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" + } + } -- cgit