1 | <?php |
||
9 | class Bootstrap |
||
10 | { |
||
11 | public function run(Runner $runner, Client $client, Config $config) |
||
12 | { |
||
13 | $runner->dispatch('tarantool.migrate'); |
||
14 | |||
15 | $client->setRoot('services'); |
||
16 | if(!$client->get($config['name'])) { |
||
17 | $client->set($config['name']) |
||
18 | } |
||
|
|||
19 | $client->setRoot('jobs'); |
||
20 | $meta = $runner->dispatch('module.meta'); |
||
21 | foreach($meta['jobs'] as $job) { |
||
22 | if(!$client->get($job)) { |
||
28 |