| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 27 | { |
||
| 28 | $container = new Container(); |
||
| 29 | $docker = $container->getDocker(); |
||
| 30 | $logger = $container->getLoggerCallback((OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity())); |
||
| 31 | |||
| 32 | foreach ($docker->getImageManager()->findAll() as $image) { |
||
| 33 | if (preg_match('#^jolicode/(.+?)$#', $image->getRepository())) { |
||
| 34 | $output->writeln(sprintf("Update %s image", $image->getRepository())); |
||
| 35 | $docker->getImageManager()->pull($image->getRepository(), 'latest', $logger->getBuildCallback()); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 | } |
||
| 40 |