diff options
| author | makkalot <makkalot@gmail.com> | 2008-08-11 09:47:47 +0300 |
|---|---|---|
| committer | makkalot <makkalot@gmail.com> | 2008-08-11 09:47:47 +0300 |
| commit | d38bc5930bb933ebd4934bbfb4dddfeb7b5ea8e5 (patch) | |
| tree | c2ae0ba88967f0bae83da13ca31605bca2c6763c /func | |
| parent | 5b149b28ab84031a0a85bf080b968aca4fbdf33b (diff) | |
| download | func-d38bc5930bb933ebd4934bbfb4dddfeb7b5ea8e5.tar.gz func-d38bc5930bb933ebd4934bbfb4dddfeb7b5ea8e5.tar.xz func-d38bc5930bb933ebd4934bbfb4dddfeb7b5ea8e5.zip | |
some changes in the echo test module
Diffstat (limited to 'func')
| -rw-r--r-- | func/minion/modules/echo.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/func/minion/modules/echo.py b/func/minion/modules/echo.py index 97afe42..a252b9c 100644 --- a/func/minion/modules/echo.py +++ b/func/minion/modules/echo.py @@ -40,14 +40,31 @@ class EchoTest(func_module.FuncModule): Run a list """ return command + + + def run_list_star(self,*command): + """ + Run a star list :) + """ + return command + def run_hash(self,command): """ Run hash """ return command + + + def run_hash_star(self,**command): + """ + Run hash + """ + + return command + def run_boolean(self,command): """ Run boolean @@ -109,6 +126,17 @@ class EchoTest(func_module.FuncModule): }, 'description':'Returns back a list' }, + 'run_list_star':{ + 'args': + { + 'command':{ + 'type':'list*', + 'optional':False + } + }, + 'description':'Prototype for *args' + }, + 'run_hash':{ 'args': { @@ -119,6 +147,17 @@ class EchoTest(func_module.FuncModule): }, 'description':'Returns back a hash' }, + 'run_hash_star':{ + 'args': + { + 'command':{ + 'type':'hash**', + 'optional':False + } + }, + 'description':'Prototype for **kwargs ' + }, + 'run_boolean':{ 'args': { |
