Skip to content

Commit

Permalink
VORTEX_INSTALL_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 19, 2025
1 parent 23d3c39 commit 5ba28e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .vortex/installer/src/Command/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .vortex/installer/src/Utils/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .vortex/tests/bats/install.initial.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5ba28e2

Please sign in to comment.