diff options
Diffstat (limited to 'abs/mv-core/func/pacman.py')
-rw-r--r-- | abs/mv-core/func/pacman.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/abs/mv-core/func/pacman.py b/abs/mv-core/func/pacman.py index c1d8d9d..c8f2e13 100644 --- a/abs/mv-core/func/pacman.py +++ b/abs/mv-core/func/pacman.py @@ -5,17 +5,15 @@ import sub_process # our modules -from modules import func_module +import func_module # ================================= class pacman(func_module.FuncModule): - def __init__(self): - self.methods = { - "update_system" : self.update_system, - "pkgversion" : self.pkgversion, - } - func_module.FuncModule.__init__(self) + version = "0.0.1" + api_version = "0.0.1" + description = "update the server" + def update_system(self,flags): flags.replace(";","") # prevent stupidity @@ -36,5 +34,3 @@ class pacman(func_module.FuncModule): return (cmd.returncode, results) -methods = pacman() -register_rpc = methods.register_rpc |