示例#1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->processInputs($input);
     $processor = $this->getProcessor();
     $this->configureProcessor($processor);
     $this->launchConfigurationAction($processor);
 }
示例#2
0
文件: Display.php 项目: lebris/karma
 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'));
 }
示例#3
0
文件: Diff.php 项目: lebris/karma
 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());
 }
示例#4
0
文件: VCS.php 项目: lebris/karma
 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']);
 }
示例#5
0
文件: Rollback.php 项目: lebris/karma
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->processInputs($input);
     $this->launchRollback();
 }