summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/func/power.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/func/power.py')
-rw-r--r--abs/mv-core/func/power.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/abs/mv-core/func/power.py b/abs/mv-core/func/power.py
deleted file mode 100644
index 668965a..0000000
--- a/abs/mv-core/func/power.py
+++ /dev/null
@@ -1,35 +0,0 @@
-##
-# other modules
-import sub_process
-
-# our modules
-import func_module
-
-# =================================
-
-class power(func_module.FuncModule):
-
- version = "0.0.1"
- api_version = "0.0.1"
- description = "Reboot the server"
-
- def reboot(self,flags="-q onecheck"):
- """
- Reboot the server
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/sbin/reboot")
- data = cmd.communicate()[0]
- results = ['reboot']
- return (cmd.returncode, results)
-
- def poweroff (self,flags="-q onecheck"):
- """
- Reboot the server
- """
- flags.replace(";","") # prevent stupidity
- cmd = sub_process.Popen("/sbin/poweroff")
- data = cmd.communicate()[0]
- results = ['off']
- return (cmd.returncode, results)
-