updated Compute to use formatted return
This commit is contained in:
parent
9280eecbcf
commit
153c1f4602
1 changed files with 15 additions and 8 deletions
|
@ -24,7 +24,8 @@ class compute
|
|||
public function listServers()
|
||||
{
|
||||
$servers = $this->libClass->listServers();
|
||||
return $servers;
|
||||
$this->app->setOutput("Servers", $servers);
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* List flavors.
|
||||
|
@ -33,7 +34,8 @@ class compute
|
|||
public function listFlavors()
|
||||
{
|
||||
$flavors = $this->libClass->listFlavors();
|
||||
return $flavors;
|
||||
$this->app->setOutput("Flavors", $flavors);
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* List images.
|
||||
|
@ -42,7 +44,8 @@ class compute
|
|||
public function listImages()
|
||||
{
|
||||
$images = $this->libClass->listImages();
|
||||
return $images;
|
||||
$this->app->setOutput("Images", $images);
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Create server.
|
||||
|
@ -60,7 +63,8 @@ class compute
|
|||
public function getServer(array $options = [])
|
||||
{
|
||||
$server = $this->libClass->getServer($options);
|
||||
return $server;
|
||||
$this->app->setOutput("MyServer", $server);
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Get flavor details.
|
||||
|
@ -69,7 +73,8 @@ class compute
|
|||
public function getFlavor(array $options = [])
|
||||
{
|
||||
$flavor = $this->libClass->getFlavor($options);
|
||||
return $flavor;
|
||||
$this->app->setOutput("MyFlavor", $flavor);
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* Get image details.
|
||||
|
@ -78,9 +83,11 @@ class compute
|
|||
public function getImage(array $options = [])
|
||||
{
|
||||
$image = $this->libClass->getImage($options);
|
||||
return $image;
|
||||
$this->app->setOutput("MyImage", $image);
|
||||
return;
|
||||
}
|
||||
//working on tests
|
||||
/* working on tests
|
||||
|
||||
public function update()
|
||||
{
|
||||
$image = $this->app->getServer(array $options = []);
|
||||
|
@ -142,6 +149,6 @@ class compute
|
|||
{
|
||||
//TODO
|
||||
}
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue