From 5ba28e281ce9d2162415bc6cb5b62b26eb6e0991 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Wed, 19 Feb 2025 16:24:51 +1100 Subject: [PATCH] VORTEX_INSTALL_VERSION --- .vortex/installer/src/Command/InstallCommand.php | 4 ++-- .vortex/installer/src/Utils/Config.php | 2 +- .vortex/tests/bats/install.initial.bats | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vortex/installer/src/Command/InstallCommand.php b/.vortex/installer/src/Command/InstallCommand.php index 9714656fa..b31d0b2c9 100644 --- a/.vortex/installer/src/Command/InstallCommand.php +++ b/.vortex/installer/src/Command/InstallCommand.php @@ -184,12 +184,12 @@ protected function resolveOptions(array $options, array $arguments): void { // Version of Vortex to download. If not provided, the latest stable // release will be downloaded. // @todo Convert to option. - $this->config->set(Config::VORTEX_VERSION, 'stable'); + $this->config->set(Config::VERSION, 'stable'); // Optional commit to download. If not provided, latest release will be // downloaded. // @todo Convert to option. - $this->config->set(Config::REPO_URI, Downloader::makeUri('https://github.com/drevops/vortex.git', $this->config->get(Config::VORTEX_VERSION))); + $this->config->set(Config::REPO_URI, Downloader::makeUri('https://github.com/drevops/vortex.git', $this->config->get(Config::VERSION))); // Flag to proceed with installation. If FALSE - the installation will only // print resolved values and will not proceed. diff --git a/.vortex/installer/src/Utils/Config.php b/.vortex/installer/src/Utils/Config.php index 1f526ec67..ad50f40db 100644 --- a/.vortex/installer/src/Utils/Config.php +++ b/.vortex/installer/src/Utils/Config.php @@ -29,7 +29,7 @@ class Config { const IS_VORTEX_PROJECT = 'VORTEX_INSTALL_IS_VORTEX_PROJECT'; - const VORTEX_VERSION = 'VORTEX_VERSION'; + const VERSION = 'VORTEX_INSTALL_VERSION'; /** * Store of configuration values. diff --git a/.vortex/tests/bats/install.initial.bats b/.vortex/tests/bats/install.initial.bats index c7809f4ef..e88026485 100644 --- a/.vortex/tests/bats/install.initial.bats +++ b/.vortex/tests/bats/install.initial.bats @@ -204,7 +204,7 @@ load _helper.bash } @test "Install into empty directory; Vortex badge version set" { - export VORTEX_VERSION="1.2.3" + export VORTEX_INSTALL_VERSION="1.2.3" run_installer_quiet