protected function execute(InputInterface $input, OutputInterface $output) { $diContainer = new DIContainer(); $gitlabCiYmlPath = $this->findGitlabConfig(); $jobName = $input->getArgument('job_name'); $refName = $input->getOption('ref_name'); $sleepTime = $input->getOption('sleep_time'); $mappedVolumes = $input->getOption('map_volume'); $jobRunner = $diContainer->getParallelJobRunner(); $jobRunner->runJobs([$jobName], $gitlabCiYmlPath, $refName, $sleepTime, $mappedVolumes); }
protected function execute(InputInterface $input, OutputInterface $output) { $diContainer = new DIContainer(); $gitlabCiYmlPath = $this->findGitlabConfig(); /** @var GitlabCIConfigurationFactory $gitlabConfigurationFactory */ $gitlabConfigurationFactory = $diContainer->get(DIContainer::GITLAB_CONFIGURATION_FACTORY); $gitlabConfiguration = $gitlabConfigurationFactory->createFromYaml($gitlabCiYmlPath); $stages = $gitlabConfiguration->stages(); $table = new Table($output); $table->setHeaders(['stage']); foreach ($stages as $stage) { $table->addRow([$stage->name()]); } $table->render(); }