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