summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'func/minion/modules/command.py')
-rw-r--r--func/minion/modules/command.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/func/minion/modules/command.py b/func/minion/modules/command.py
index 3329927..cc463cf 100644
--- a/func/minion/modules/command.py
+++ b/func/minion/modules/command.py
@@ -13,18 +13,14 @@
Abitrary command execution module for func.
"""
-from modules import func_module
-
+import func_module
import sub_process
class Command(func_module.FuncModule):
- def __init__(self):
- self.methods = {
- "run" : self.run,
- "exists" : self.exists,
- }
- func_module.FuncModule.__init__(self)
+ version = "0.0.1"
+ api_version = "0.0.1"
+ description = "Works with shell commands."
def run(self, command):
"""
@@ -46,7 +42,3 @@ class Command(func_module.FuncModule):
if os.access(command, os.X_OK):
return True
return False
-
-
-methods = Command()
-register_rpc = methods.register_rpc \ No newline at end of file