public function testDeleteServer()
 {
     if (empty(self::$serverId)) {
         $this->markTestSkipped('The server ID is empty');
     }
     $this->assertTrue($this->compute->deleteServer(self::$serverId));
 }
Ejemplo n.º 2
0
 /**
  * Get the progress's status
  *
  * @return integer|bool
  */
 public function getProgress()
 {
     $data = $this->service->getImage($this->id);
     if ($data !== false) {
         $data = $data->toArray();
         $this->progress = $data['progress'];
         return $this->progress;
     }
     return false;
 }
Ejemplo n.º 3
0
 /**
  * Reboot the server
  *
  * @return bool
  */
 public function reboot($hard = false)
 {
     return $this->service->rebootServer($this->id, $hard);
 }