updateScalarizr() public method

public updateScalarizr ( $force = false )
コード例 #1
0
ファイル: Servers.php プロジェクト: rakesh-mohanta/scalr
 public function xSzrUpdateAction()
 {
     if (!$this->getParam('serverId')) {
         throw new Exception(_('Server not found'));
     }
     $dbServer = DBServer::LoadByID($this->getParam('serverId'));
     $this->user->getPermissions()->validate($dbServer);
     $updateClient = new Scalr_Net_Scalarizr_UpdateClient($dbServer);
     $status = $updateClient->updateScalarizr();
     $this->response->success('Scalarizr successfully updated to the latest version');
 }
コード例 #2
0
ファイル: Servers.php プロジェクト: mheydt/scalr
 public function xSzrUpdateAction()
 {
     if (!$this->getParam('serverId')) {
         throw new Exception(_('Server not found'));
     }
     $dbServer = DBServer::LoadByID($this->getParam('serverId'));
     $this->user->getPermissions()->validate($dbServer);
     $port = $dbServer->GetProperty(SERVER_PROPERTIES::SZR_UPDC_PORT);
     if (!$port) {
         $port = 8008;
     }
     $updateClient = new Scalr_Net_Scalarizr_UpdateClient($dbServer, $port, 100);
     $status = $updateClient->updateScalarizr();
     $this->response->success('Scalarizr successfully updated to the latest version');
 }