summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/command.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-17 11:55:12 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-17 11:55:12 -0500
commiteb67b305060e9e962d6a90766e8a39ca80065af2 (patch)
treee5c0821bdf499de192d31821d0311049444cb2ce /func/minion/modules/command.py
parent3c11b8cd0d91e0c4cd5aa007eddc330452b3ace7 (diff)
parentaee6076dd78dfb1b88ab4d369e24fb1bbf710816 (diff)
Merge branch 'master' of ssh://git.fedoraproject.org/git/hosted/func
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