Merge branch 'develop' into loic
This commit is contained in:
commit
364c75e572
1 changed files with 18 additions and 5 deletions
|
@ -17,10 +17,22 @@ class compute
|
||||||
$this->app = $app;
|
$this->app = $app;
|
||||||
$this->libClass = $app->getLibClass("Compute");
|
$this->libClass = $app->getLibClass("Compute");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* List servers.
|
* Execute an action
|
||||||
* @return array
|
*
|
||||||
*/
|
* @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()
|
public function listServers()
|
||||||
{
|
{
|
||||||
$servers = $this->libClass->listServers();
|
$servers = $this->libClass->listServers();
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue