summaryrefslogtreecommitdiff
path: root/server/core
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-28 20:51:37 +0100
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2016-02-28 20:51:37 +0100
commit364c75e57228c7ecd959381493ebc24610f038b5 (patch)
treef7b0b6d260a731fa1dc3e32f6aa126a6946dde3a /server/core
parentc35c8806623e2eb95d7b101a2d66639f827a6a25 (diff)
parent1514d3daeb304be6258339d800a02d6e48a1c486 (diff)
Merge branch 'develop' into loic
Diffstat (limited to 'server/core')
-rw-r--r--server/core/Compute.php23
1 files changed, 18 insertions, 5 deletions
diff --git a/server/core/Compute.php b/server/core/Compute.php
index 84af889..fdc6b20 100644
--- a/server/core/Compute.php
+++ b/server/core/Compute.php
@@ -17,10 +17,22 @@ class compute
$this->app = $app;
$this->libClass = $app->getLibClass("Compute");
}
- /**
- * List servers.
- * @return array
- */
+ /**
+ * Execute an action
+ *
+ * @param String $action name of another function of this class
+ *
+ * @return void
+ */
+ public function action($action){
+
+ $this->{$action.""}();
+
+ }
+ /**
+ * List servers.
+ * @return array
+ */
public function listServers()
{
$servers = $this->libClass->listServers();
@@ -50,12 +62,13 @@ class compute
/**
* Create server.
* @return array
- */
+ *
public function createServer()
{
$server = $this->libClass->createServer();
}
+ */
/**
* Get server details.
* @return array