summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-08-08 17:52:21 +0300
committermakkalot <makkalot@gmail.com>2008-08-08 17:52:21 +0300
commit9c7728a137a7fb1d1ca7d4b1fdebe904fad8a471 (patch)
treed88b9d7bd07e9d54b6e345b1c14757e5faf83a70
parent2a4f3b749a40cc3dbd786b7348dc9961423fe0b2 (diff)
downloadfunc-9c7728a137a7fb1d1ca7d4b1fdebe904fad8a471.tar.gz
func-9c7728a137a7fb1d1ca7d4b1fdebe904fad8a471.tar.xz
func-9c7728a137a7fb1d1ca7d4b1fdebe904fad8a471.zip
export module yumcmcd
-rw-r--r--func/minion/modules/yumcmd.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/func/minion/modules/yumcmd.py b/func/minion/modules/yumcmd.py
index 072b907..a35b104 100644
--- a/func/minion/modules/yumcmd.py
+++ b/func/minion/modules/yumcmd.py
@@ -69,3 +69,36 @@ class Yum(func_module.FuncModule):
pkg_list = exactmatch + matched
return map(str, pkg_list)
+
+ def register_method_args(self):
+ """
+ Implementing the argument getter
+ """
+
+ return{
+ 'update':{
+ 'args':{
+ 'pkg':{
+ 'type':'string',
+ 'optional':True,
+ 'description':"The yum pattern for updating package"
+ }
+ },
+ 'description':"Updating system according to a specified pattern"
+ },
+ 'check_update':{
+ 'args':{
+ 'filter':{
+ 'type':'list',
+ 'optional':True,
+ 'description':"A list of what you want to update"
+ },
+ 'repo':{
+ 'type':'string',
+ 'optional':True,
+ 'description':'Repo name to use for that update'
+ }
+ },
+ 'description':"Cheking for updates with supplied filter patterns and repo"
+ }
+ }