Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RUBY_INSTALL_* env variables to allow configuration #414

Closed
postmodern opened this issue Jan 7, 2022 · 2 comments
Closed

Add RUBY_INSTALL_* env variables to allow configuration #414

postmodern opened this issue Jan 7, 2022 · 2 comments
Assignees
Milestone

Comments

@postmodern
Copy link
Owner

Based on the discussion in #413, maybe add RUBY_INSTALL_* env variables to allow global configuration of ruby-installs defaults in a user's shell configuration.

Suggestions

  • RUBY_INSTALL_RUBIES_DIR - overrides the default directory to install rubies into (either /opt/rubies for root, or ~/.rubies for regular users).
  • RUBY_INSTALL_SRC_DIR / RUBY_INSTALL_CACHE_DIR - overrides where ruby archives will be downloaded to (aka /usr/local/src for root, and ~/src/ for regular users). Eventually, I want to switch to downloading into ~/.cache/ruby-install/... for regular users to comply with XDG and get rid of the unsightly ~/src directory.
  • RUBY_INSTALL_PACKAGE_MANAGER / RUBY_INSTALL_PKG_MANAGER - overrides the detected package manager. Would be useful when you have both homebrew and MacPorts installed, or apt and LinuxBrew installed.
  • RUBY_INSTALL_DOWNLOADER - overrides whether to use wget or curl. Maybe some people are really opinionated about using curl or wget, but have both installed?
@postmodern
Copy link
Owner Author

Also relevant to #253, #284, and #177.

@postmodern postmodern added this to the 0.9.0 milestone Jan 7, 2022
@postmodern
Copy link
Owner Author

Added RUBY_INSTALL_RUBIES_DIR and RUBY_INSTALL_SRC_DIR in 43e837b. Added RUBY_INSTALL_PKG_MANAGER in 74e1912. Decided against adding RUBY_INSTALL_DOWNLOADER, unless there is popular demand for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant