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

allow ruby switching #3

Closed
hbarrington opened this issue Apr 13, 2012 · 12 comments
Closed

allow ruby switching #3

hbarrington opened this issue Apr 13, 2012 · 12 comments
Assignees

Comments

@hbarrington
Copy link

allow switching of ruby versions

@ghost ghost closed this as completed Apr 14, 2012
@ghost ghost reopened this Apr 14, 2012
@ghost
Copy link

ghost commented Apr 14, 2012

@mpapis inadvertent closure. This is for rvm-gem and NOT rvm. I read my Inbox too fast. I apologize.

I also deleted my previous response, it was inappropriate to rvm-gem.

@mpapis
Copy link
Member

mpapis commented Apr 14, 2012

from #2:

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

@ghost ghost assigned mpapis Apr 14, 2012
@hbarrington
Copy link
Author

@mpapis thanks for the additional explanation. I was in a rush but wanted to get it up before leaving. Are there leads for how one might approach this problem?

@mpapis
Copy link
Member

mpapis commented Apr 14, 2012

it requires changes in code, depending on the implementation it might require additional libraries.

you could write some examples of what you need like:

RVM.with "1.9.3" do |e|
  e.run "echo $MY_RUBY_HOME"
end

also some details would be good:

  • do you want to run rvm inside
  • do you want to have cd handling inside for project files
  • do you want to persist environment between two calls to run

@deryldoucette any more questions after experiences with rvm-test ?

@hbarrington
Copy link
Author

persistent environment between two calls to run makes sense. I won't personally be needing cd but I could see others needing it. I'm not sure what you mean by running rvm inside... can you give an example?

the code block that you gave as an example would be great!

@hbarrington
Copy link
Author

@mpapis let me know if you need more information

@mpapis
Copy link
Member

mpapis commented Apr 20, 2012

I'm sorry for the delay, I'm on conference right now, will have a look into it starting from Monday.

@hbarrington
Copy link
Author

@mpapis not at all! I appreciate the help and look forward to being able to use it. Thanks

@hbarrington
Copy link
Author

@mpapis any luck? thanks again

@mpapis
Copy link
Member

mpapis commented Apr 24, 2012

@hbarrington just got back from the conference, this feature has lower prio, it will take few days to find time for it (there is 15 other bugs waiting to be solved for RVM: https://github.com/wayneeseguin/rvm/issues?direction=desc&milestone=15&sort=created&state=open)

@hbarrington
Copy link
Author

@mpapis completely understand. Thanks. I just needed to know where to spend my time coding and what the timeframe may or may not look like. It's greatly appreciated sir

@mpapis
Copy link
Member

mpapis commented Apr 28, 2012

I have created it as a separate gem: https://github.com/mpapis/rvm-with

@mpapis mpapis closed this as completed Apr 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants