-
-
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
latest rvm: install via gem command needs 'exec' (or 'do') #43
Comments
I can confirm that |
I was looking at that same code. When running with the previous implicit exec, it would work if you passed in a gem_binary to the resource as exec would happily run the fully qualified gem command. Replacing Please see: http://beginrescueend.com/set/do/ If this is blocking anyone, I can confirm that rvm 1.8.5 works with the current cookbook implementation. 1.8.6 and above will need an updated cookbook for set actions. |
Thanks for the feedback, I better get on this then. It looks like the code might need to behave both ways depending on the release version of RVM to preserve existing installs. Oh well, I think this would be the first large API change I've had to accommodate in almost a year. Good on the RVM team! |
Please see pull #46. |
I think we're back up to date with #46 being pulled in. This one is big enough to warrant new tagged release. If anyone is still seeing this issue (in older RVMs or newer) then please reopen. API compatible again, woot! |
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. |
Just a heads up really. Latest RVM has changed the implicit exec to explicit, as in...
from:
rvm ruby-1.9.2-p290@global gem install rspec -q --no-rdoc --no-ri
to:
rvm ruby-1.9.2-p290@global exec gem install rspec -q --no-rdoc --no-ri
I think I changed the correct area in libraries/rvm_rubygems_package.rb
def install_via_gem_command(name, version)
src = @new_resource.source &&
" --source=#{@new_resource.source} --source=http://rubygems.org"
...
and the same for uninstall
However, according to the RVM guys (rvm/rvm#487 (comment)) 'exec' is changing to 'do'
HTH
Guy
The text was updated successfully, but these errors were encountered: