diff options
| author | stupidon <bhupendra.siyag@gmail.com> | 2016-02-28 20:50:22 +0100 |
|---|---|---|
| committer | stupidon <bhupendra.siyag@gmail.com> | 2016-02-28 20:50:22 +0100 |
| commit | 1514d3daeb304be6258339d800a02d6e48a1c486 (patch) | |
| tree | afbf1cd28d607ec0b5b63fd0fcd47445e2c0e866 | |
| parent | 2583ae04deed167ba3bcb12c52d1188d2538536a (diff) | |
| parent | c67651168a08cdd5209fafedea86c48c3fe6d6f0 (diff) | |
Merge branch 'compute' into develop
| -rw-r--r-- | server/core/Compute.php | 23 |
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 |
