From 11833cb069e0723b1395c28b64ce753a3a9acdec Mon Sep 17 00:00:00 2001 From: makkalot Date: Thu, 7 Aug 2008 15:26:17 +0300 Subject: the series of exporting the minion modules to UI command module --- func/minion/modules/command.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'func/minion/modules/command.py') 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' + } + } -- cgit From 7cba338361b81c31793458fdf8cb666ef3ac89dd Mon Sep 17 00:00:00 2001 From: makkalot Date: Mon, 11 Aug 2008 14:29:17 +0300 Subject: export jboss and fix some typos --- func/minion/modules/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'func/minion/modules/command.py') diff --git a/func/minion/modules/command.py b/func/minion/modules/command.py index 20a6ccf..b41dd9b 100644 --- a/func/minion/modules/command.py +++ b/func/minion/modules/command.py @@ -14,7 +14,7 @@ Abitrary command execution module for func. """ import func_module -import sub_process +from func.minion import sub_process class Command(func_module.FuncModule): -- cgit