示例#1
0
 /**
  * Destroy an instance
  *
  * @param  string $id
  * @return boolean
  */
 public function destroyInstance($id)
 {
     $this->resetError();
     try {
         $this->adapterResult = $this->ec2->terminate($id);
     } catch (Ec2Exception\RunTimeException $e) {
         $this->setError($e);
         return false;
     }
     return true;
 }
示例#2
0
 /**
  * Destroy an instance
  *
  * @param  string $id
  * @return boolean
  */
 public function destroyInstance($id)
 {
     $this->adapterResult = $this->ec2->terminate($id);
     return !empty($this->adapterResult);
 }