コード例 #1
0
ファイル: Rackspace.php プロジェクト: brikou/zend_cloud
 /**
  * Destroy an instance
  *
  * @param  string $id
  * @return boolean
  */
 public function destroyInstance($id)
 {
     $this->resetError();
     $this->adapterResult = $this->rackspace->deleteServer($id);
     if ($this->adapterResult === false) {
         $this->setError();
     }
     return $this->adapterResult;
 }
コード例 #2
0
ファイル: OfflineTest.php プロジェクト: robertodormepoco/zf2
 /**
  * Test delete server
  */
 public function testDeleteServer()
 {
     $this->assertTrue($this->rackspace->deleteServer(self::$serverId));
 }
コード例 #3
0
ファイル: Rackspace.php プロジェクト: ruflin/zf2
 /**
  * Destroy an instance
  *
  * @param  string $id
  * @return boolean
  */ 
 public function destroyInstance($id)
 {
     $this->adapterResult= $this->rackspace->deleteServer($id);
     return $this->adapterResult;
 }