diff --git a/src/Command/Tree.php b/src/Command/Tree.php new file mode 100644 index 0000000..f3cb121 --- /dev/null +++ b/src/Command/Tree.php @@ -0,0 +1,42 @@ +deployRunner = $deployRunner; + } + + protected function execute(Input $input, Output $output): int + { + try { + $this->deployRunner->prepare(true, true, $input->getArgument('task'), false); + } catch (InvalidConfigurationException | ValidationException $e) { + $output->write($e->getMessage()); + return 1; + } + $result = parent::execute($input, $output); + + return $result; + } +} diff --git a/src/DeployRunner.php b/src/DeployRunner.php index e9c7692..3688ae8 100644 --- a/src/DeployRunner.php +++ b/src/DeployRunner.php @@ -104,7 +104,7 @@ public function run( * @throws InvalidConfigurationException * @throws Throwable */ - private function prepare( + public function prepare( bool $configureBuildStage, bool $configureServers, string $stage,