protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->processInputs($input); $processor = $this->getProcessor(); $this->configureProcessor($processor); $this->launchConfigurationAction($processor); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $environment = $input->getOption('env'); $this->output->writeln(sprintf("<info>Display <comment>%s</comment> values</info>\n", $environment)); $reader = $this->app['configuration']; $reader->setDefaultEnvironment($input->getOption('env')); $this->displayValues($reader, $input->getOption('value')); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $environment1 = $input->getArgument('env1'); $environment2 = $input->getArgument('env2'); $output->writeln(sprintf("<info>Diff between <comment>%s</comment> and <comment>%s</comment></info>\n", $environment1, $environment2)); $diff = $this->app['configuration']->compareEnvironments($environment1, $environment2); $output->writeln(''); $table = new CliTable($diff); $table->enableFormattingTags()->setHeaders(array($environment1, $environment2))->displayKeys()->setValueRenderingFunction(function ($value) { return $this->formatValue($value); }); $output->writeln($table->render()); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->output->writeln("<info>Looking for vcs operations</info>\n"); $sourcePath = $input->getArgument('sourcePath'); if ($sourcePath === null) { $profile = $this->app['profile']; if ($profile->hasSourcePath() !== true) { throw new \RuntimeException('Missing argument sourcePath'); } $sourcePath = $profile->getSourcePath(); } $this->app['sources.path'] = $sourcePath; $vcs = $this->app['vcsHandler']($this->app['vcs']); $vcs->execute($this->app['sources.path']); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->processInputs($input); $this->launchRollback(); }