mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-23 08:09:37 -05:00
22 lines
523 B
PHP
22 lines
523 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\Director;
|
|
|
|
use Icinga\Module\Director\Hook\ShipConfigFilesHook;
|
|
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
|
|
|
class ShipConfigFiles extends ShipConfigFilesHook
|
|
{
|
|
public function fetchFiles()
|
|
{
|
|
$files = array();
|
|
|
|
$storage = LegacyStorage::getInstance();
|
|
|
|
foreach ($storage->listProcesses() as $name => $title) {
|
|
$files['processes/' . $name . '.bp'] = $storage->getSource($name);
|
|
}
|
|
|
|
return $files;
|
|
}
|
|
}
|