-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
use and run_command don't work in rails console or rake #2
Comments
does it work with other rubies ? I do not think |
I tried installing 1.8.7 and using that instead of system. seems to be the same error. Is there something I can run to get an idea of environment variables and see what might be the issue? Source code for the RVM gem doesn't suggest anything at first or second glance |
@hbarrington here is part of the documentation i found https://github.com/wayneeseguin/rvm-gem/blob/master/lib/rvm.rb ... what I understood the if you would like to have a selectable environments so you could invoke commands in they scope - this would require changes, please open new ticket for it. |
used: received the same error. Not sure exactly what you mean about "selectable environments so you could invoke commands". I thought that was the point of rvm. Am I missing something? A little documentation might help but I don't mind reading source |
you can not change the loaded ruby version and you try to switch to 1.8.7 from 1.9.2 - this will not work, what you need is a possibility to select any ruby and allow running commands in context of this ruby, please open a new ticket for it |
@mpapis thanks for spelling it out for me... I wasnt making the connection. Thanks |
running the following works in IRB but not rails console or rake
env = RVM::Environment.new('system')
env.shell_wrapper.run_command("cd ~/opscode/FTW && knife rackspace server list")
output shows:
->
my first guess is it has to do with bundler... i'll update if i find anything
The text was updated successfully, but these errors were encountered: