public function indexAction()
 {
     $this->view->title = $this->translate('Deployment details');
     $deploymentId = $this->params->get('id');
     $this->view->deployment = $deployment = DirectorDeploymentLog::load($deploymentId, $this->db());
     $this->view->config_checksum = Util::binary2hex($deployment->config_checksum);
     $this->view->config = IcingaConfig::load($deployment->config_checksum, $this->db());
     $tabs = $this->getTabs()->add('deployment', array('label' => $this->translate('Deployment'), 'url' => $this->getRequest()->getUrl()))->activate('deployment');
     if ($deployment->config_checksum !== null) {
         $tabs->add('config', array('label' => $this->translate('Config'), 'url' => 'director/config/files', 'urlParams' => array('checksum' => $this->view->config_checksum, 'deployment_id' => $deploymentId)));
     }
 }
Exemplo n.º 2
0
 public function getLastActivityHexChecksum()
 {
     return Util::binary2hex($this->getLastActivityChecksum());
 }
Exemplo n.º 3
0
 /**
  * Whether the last run of this import matches the given checksum
  */
 protected function lastRowsetIs($checksum)
 {
     return $this->connection->getLatestImportedChecksum($this->source->id) === Util::binary2hex($checksum);
 }
Exemplo n.º 4
0
 public function getHexChecksum()
 {
     return Util::binary2hex($this->getChecksum());
 }