diff options
Diffstat (limited to 'func/minion/modules/command.py')
-rw-r--r-- | func/minion/modules/command.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/func/minion/modules/command.py b/func/minion/modules/command.py index cc463cf..20a6ccf 100644 --- a/func/minion/modules/command.py +++ b/func/minion/modules/command.py @@ -42,3 +42,29 @@ class Command(func_module.FuncModule): if os.access(command, os.X_OK): return True return False + + def register_method_args(self): + """ + The argument export method + """ + #common type in both descriptions + command = { + 'type':'string', + 'optional':False, + 'description':'The command that is going to be used', + } + + return { + 'run':{ + 'args':{ + 'command':command + }, + 'description':'Run a specified command' + }, + 'exists':{ + 'args':{ + 'command':command + }, + 'description':'Check if specific command exists' + } + } |