Basics of RVM (Ruby Version Manager)

Page 1

Basics of RVM (Ruby Version Manager) By: Mayank Jani, RoR Developer, ​ Codal Inc

RVM​ (Ruby Version Manager) is a command­line tool that manages multiple Ruby versions for your applications on a single device. When different applications are using different versions of Ruby, RVM becomes extremely valuable. It allows an eager developer to switch between projects that require different versions of Ruby. This is a common problem that developers face, and RVM is a great solution to this issue.

RVM was developed by Wayne E. Seguin and Michal Papis and in October 2007. RVM is supported into unix­like operating systems and it is written into Bash and Ruby.

Installing RVM: Public Key Install: $ gpg ­­keyserver hkp://keys.gnupg.net ­­recv­keys 409B6B1796C275462A1703113804BB82D39DC0E3 RVM Install: $ \curl ­sSL https://get.rvm.io | bash ­s stable Features of RVM: ● Manages multiple Ruby versions ● Less configurations ● Easy installations ● Can manage gems using gemsets ● .rvmrc file or .ruby­version and .ruby­gemset files concept ● Can run rubies in multiple terminals Ruby Commands: To check available Ruby versions: $ rvm list known To install specific Ruby version: $ rvm install [ruby version] # $ rvm install 2.1


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Basics of RVM (Ruby Version Manager) by Codal Inc - Issuu