Merge branch 'compute' into develop

This commit is contained in:
stupidon 2016-02-28 20:50:22 +01:00
commit 1514d3daeb

View file

@ -16,6 +16,18 @@ class compute
{ {
$this->app = $app; $this->app = $app;
$this->libClass = $app->getLibClass("Compute"); $this->libClass = $app->getLibClass("Compute");
}
/**
* Execute an action
*
* @param String $action name of another function of this class
*
* @return void
*/
public function action($action){
$this->{$action.""}();
} }
/** /**
* List servers. * List servers.
@ -50,12 +62,13 @@ class compute
/** /**
* Create server. * Create server.
* @return array * @return array
*/ *
public function createServer() public function createServer()
{ {
$server = $this->libClass->createServer(); $server = $this->libClass->createServer();
} }
*/
/** /**
* Get server details. * Get server details.
* @return array * @return array