Ruby Version Manager By Rahul P. Chaudhari<br />1<br />
How to Install and manage multiple Ruby Versions<br />  (MRI 1.8.X, 1.9.X, REE, Jruby, Iron ruby)<br />How to manage multi...
Managing  Multiple Ruby Versions(Tools)<br />Pik for Windows<br />RVM for Linux(Bash)<br />3<br />
Flavors of  RVM<br />Basic Installation <br />http://rvm.beginrescueend.com/rvm/install/<br />System Wide Installation<br ...
Installing Rubies<br /><ul><li>rvm list
List all installed ruby interpreters
rvm [use] <Ruby>
To use  the specified ruby</li></ul>     e.g. rvm use 1.8.7<br />            rvm 1.8.7<br />            rvm 1.8.7-p330<br ...
Installing Rubies<br /><ul><li>rvm  list default
Display’s the default ruby interpreter
rvm default
Switch to default ruby interpreter</li></ul>6<br />
Upcoming SlideShare
Loading in …5
×

Ruby version manager

1,744 views

Published on

Brief introduction to Ruby version manager. Covers types of RVM, installation, gemset and important usages.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,744
On SlideShare
0
From Embeds
0
Number of Embeds
490
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ruby version manager

  1. 1. Ruby Version Manager By Rahul P. Chaudhari<br />1<br />
  2. 2. How to Install and manage multiple Ruby Versions<br /> (MRI 1.8.X, 1.9.X, REE, Jruby, Iron ruby)<br />How to manage multiple gem versions<br />Need For RVM<br />2<br />
  3. 3. Managing Multiple Ruby Versions(Tools)<br />Pik for Windows<br />RVM for Linux(Bash)<br />3<br />
  4. 4. Flavors of RVM<br />Basic Installation <br />http://rvm.beginrescueend.com/rvm/install/<br />System Wide Installation<br />http://rvm.beginrescueend.com/deployment<br />system-wide/<br />4<br />
  5. 5. Installing Rubies<br /><ul><li>rvm list
  6. 6. List all installed ruby interpreters
  7. 7. rvm [use] <Ruby>
  8. 8. To use the specified ruby</li></ul> e.g. rvm use 1.8.7<br /> rvm 1.8.7<br /> rvm 1.8.7-p330<br />5<br />
  9. 9. Installing Rubies<br /><ul><li>rvm list default
  10. 10. Display’s the default ruby interpreter
  11. 11. rvm default
  12. 12. Switch to default ruby interpreter</li></ul>6<br />
  13. 13. Gemset<br />Manage multiple gems under single ruby<br /><ul><li>rvm gemset create <gemset name>
  14. 14. Create a gemset</li></ul> e.g. rvm gemset create rails235 rails305<br /><ul><li>rvm gemset list
  15. 15. List all the available gemsets </li></ul>7<br />
  16. 16. Gemset<br /><ul><li>rvm gemset use <gemset name>
  17. 17. Use the specified gem</li></ul> (run ‘gem env’ command to observe changes in gem path )<br /><ul><li>rvm gemset [-- force] delete <gemset name>
  18. 18. Delete the specified gemset</li></ul>8<br />
  19. 19. Gemset<br /><ul><li>rvm gemset [-- force] empty <gemset name>
  20. 20. Remove all gems from specified gemset
  21. 21. rvm gemset copy <ruby@gemset> <ruby@gemset >
  22. 22. Copy all gems from specified gemset to another gemset</li></ul>9<br />
  23. 23. Gemset<br /><ul><li>rvm gemset import and export
  24. 24. Import or export a gem
  25. 25. rvm gemset name
  26. 26. Display’s the gemset currently in use </li></ul>10<br />
  27. 27. Bonus<br />rvm prompt <br />.rvmrc <br />rvm benchmark demo.rb<br />11<br />
  28. 28. Thank You<br />Blog - http://rahul100885.blogspot.com/<br />E-mail - rahul100885@gmail.com<br />mauli.chaudhari@gmail.com<br />12<br />

×