mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
258e4413b1
Expose a `version-name` hook. It is invoked *after* the traditional `RBENV_VERSION` lookup. Which means hook scripts can interrogate `$RBENV_VERSION_FILE` and/or `$RBENV_VERSION` (or use the executables). The hooks are then run, giving plugins a chance to alter `RBENV_VERSION`. Once the hooks have run, we now have (in `$RBENV_VERSION`) the actual version we want to use (or it's empty which defaults to `system` per normal). Lastly, the same logic remains for checking if the version exists, or trimming the `ruby-` prefix. Prime example: the ruby-bundler-ruby-version plugin can select a ruby by using the `ruby` directive from the `Gemfile` if a local `.ruby-version` doesn't exist. |
||
---|---|---|
.. | ||
libexec | ||
--version.bats | ||
commands.bats | ||
completions.bats | ||
exec.bats | ||
global.bats | ||
help.bats | ||
hooks.bats | ||
init.bats | ||
local.bats | ||
prefix.bats | ||
rbenv.bats | ||
rehash.bats | ||
run | ||
shell.bats | ||
shims.bats | ||
test_helper.bash | ||
version-file-read.bats | ||
version-file-write.bats | ||
version-file.bats | ||
version-name.bats | ||
version-origin.bats | ||
version.bats | ||
versions.bats | ||
whence.bats | ||
which.bats |