2015-09-30 08:38:39 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
2015-09-30 08:38:39 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\ActionController;
|
|
|
|
use Icinga\Module\Director\Objects\DirectorDeploymentLog;
|
2017-07-20 11:06:20 +02:00
|
|
|
use Icinga\Module\Director\Web\Widget\DeploymentInfo;
|
2015-09-30 08:38:39 +02:00
|
|
|
|
2015-10-20 22:34:04 +02:00
|
|
|
class DeploymentController extends ActionController
|
2015-09-30 08:38:39 +02:00
|
|
|
{
|
2016-11-03 16:06:18 +01:00
|
|
|
protected function checkDirectorPermissions()
|
|
|
|
{
|
|
|
|
$this->assertPermission('director/deploy');
|
|
|
|
}
|
|
|
|
|
2015-12-16 16:19:58 +01:00
|
|
|
public function indexAction()
|
2015-09-30 08:38:39 +02:00
|
|
|
{
|
2017-07-20 11:06:20 +02:00
|
|
|
$info = new DeploymentInfo(DirectorDeploymentLog::load(
|
|
|
|
$this->params->get('id'),
|
2015-10-16 18:10:38 +02:00
|
|
|
$this->db()
|
2017-07-20 11:06:20 +02:00
|
|
|
));
|
|
|
|
$this->addTitle($this->translate('Deployment details'));
|
|
|
|
$this->tabs(
|
|
|
|
$info->getTabs($this->getAuth(), $this->getRequest())
|
|
|
|
)->activate('deployment');
|
|
|
|
$this->content()->add($info);
|
2015-09-30 08:38:39 +02:00
|
|
|
}
|
|
|
|
}
|