Created
December 27, 2011 21:37
-
-
Save tacitphoenix/1525239 to your computer and use it in GitHub Desktop.
Quick intro to Ruby development tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install RVM | |
Run in terminal: bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
Add to end profile: echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" | |
OR | |
edit and use utilities/rvm_install.sh: ./utilities/rvm_intstall.sh | |
Basic RVM Commands | |
http://beginrescueend.com/rvm/best-practices/ | |
rvm -v #what version? | |
rvm help | |
rvm install 1.9.2 #install this version of MRI | |
rvm install jruby #install latest version of jruby | |
rvm install macruby #install latest version of mac ruby | |
rvm install 1.8.7 #install this version of MRI | |
rvm use 1.9.2 --default #use this version as default on system | |
rvm use <version> #allow you to switch to any version | |
rvm list #list all the VMs | |
rvm --rvmrc --create 1.9.2@projecta # create .rvmrc file in root directory of project with version and | |
gemset. entering directory triggers setup | |
rvm <version> #get ready for versions | |
rvm create gemset rwo1 rwo2 #create gemsets | |
rvm <version> rwo1 #switch to gemset | |
Basic Gems Commands | |
gem -v #what's the version | |
gem env gemdir #identify gem directory | |
gem install rails #install rails (also installs dependencies) | |
gem help #help on-demand | |
gem help list #how do I use thelist commmand | |
gem list #list local gems (-l option is default) | |
gem list -l -d #list the local gems with detail | |
gem query -r -n '^a' #find all the remote gems that begin with a | |
gem search -r 'generator' #find all remote gems whose name contains generator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment