MyBuilder\Conductor\Command\UpdateCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $configuration = $this->getConfiguration();
        if (false === isset($configuration['artifacts_repository'])) {
            throw new \RuntimeException('Missing "conductor.artifacts_repository" configuration');
        }
        if (false === isset($configuration['packages'])) {
            throw new \RuntimeException('Missing "conductor.packages" configuration');
        }
        $output->writeln('<info>Zipping packages</info>');
        $this->ensureRepositoryDirExists($configuration['artifacts_repository']);
        $this->conductor->updatePackages($configuration['packages'], new PackageZipper($configuration['artifacts_repository']));
    }