コード例 #1
0
ファイル: Rackspace.php プロジェクト: brikou/zend_cloud
 /**
  * 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
ファイル: OfflineTest.php プロジェクト: robertodormepoco/zf2
 /**
  * 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);
 }