예제 #1
0
 /**
  * Reboot an instance
  *
  * @param string $id
  * @return boolean
  */
 public function rebootInstance($id)
 {
     $this->resetError();
     $result = $this->rackspace->rebootServer($id, true);
     if ($result === false) {
         $this->setError();
     }
     return $result;
 }
예제 #2
0
 /**
  * Test hard reboot the server
  */
 public function testHardRebootServer()
 {
     $this->assertTrue($this->rackspace->rebootServer(self::$serverId, true));
 }
예제 #3
0
파일: Server.php 프로젝트: noose/zf2
 /**
  * Reboot the server
  * 
  * @return boolean 
  */
 public function reboot($hard=false)
 {
     return $this->service->rebootServer($this->id,$hard);
 }
예제 #4
0
파일: OnlineTest.php 프로젝트: ruflin/zf2
 /**
  * Test hard reboot the server
  */
 public function testHardRebootServer()
 {
     $this->assertTrue(self::$rackspace->rebootServer(self::$serverId,true));
     $this->assertTrue(self::waitForStatus('active'));
 }
예제 #5
0
파일: Rackspace.php 프로젝트: ruflin/zf2
 /**
  * Reboot an instance
  *
  * @param string $id
  * @return boolean
  */ 
 public function rebootInstance($id)
 {
     return $this->rackspace->rebootServer($id,true);
 }