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

Already on GitHub? Sign in to your account

rvm_shell provider accepts an environment for both user and system-wide installs #170

wants to merge 1 commit into


None yet
2 participants

I have a system-wide RVM installation and there times when I need to use an rvm-aware shell in a chef recipe, but in the context of a given user's environment (I need to access that user's SSH keys, other things that are found by referencing a HOME and USER environment variable).

Currently, the rvm_shell provider only allows an environment to be specified if:

  1. there is a "user" specified
  2. RVM was installed on a per-user basis

This patch addresses both cases:

A base environment is still applied when in an rvm-per-user context, a specified environment is still merged onto this base.

But, also -- regardless of specifying a "user" or the type of RVM installation used (system-wide vs per-user), if a specified environment is found, we'll use it.

This would fix issue #69

👍 to this! Great patch, thanks to it I can install a rails applications in differents environments. Why isn't merged? Is there any other option to pass env vars to rvm_shell, in system wide installations?

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