-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
RVM string cache problem (in rvm_shell) #35
Comments
Oh right, there are two notions of user in this resource:
And in a lot of cases these two don't overlap. If you wanted to a) rvm_shell "bundle install" do
user "vagrant"
end
rvm_shell "bundle install" do
rvm_user "jenkins"
end b) rvm_shell "bundle install" do
shell_user "vagrant"
end
rvm_shell "bundle install" do
user "jenkins"
end c) |
I found a way to keep the user attribute as is, but fall back to system wide if they don't have a user RVM installed (as you suggested). Push coming... |
@jonleighton thanks for pointing out this issue. If I didn't quite solve your problem, please reopen. |
Thanks, I'll check this stuff out next week when I return to the project I am using chef-rvm on. Cheers! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I have RVM installed system-wide, and I am doing something like this in a recipe:
Due to the setting of the user,
canonical_ruby_string
inChef::RVM::StringCache
looks for the rvm source file in the "vagrant" user's home directory. However, RVM is installed system-wide, so this causes it to break.Perhaps it should check the user's home dir, and then fall back to the system wide location.
The text was updated successfully, but these errors were encountered: