Skip to content

Instantly share code, notes, and snippets.

@rab1234
rab1234 / create_gemset
Created May 18, 2012 01:19
rails_prep.rb - a ruby script to prepare a new rails application
#!/bin/bash
#
# I use this bash script to create an rvm gemset for a new rails app
# and I call this script from my rails_prep.rb ruby script
#
echo "create new gemset for new rails application ..."
#rvm --create 1.9.2@$1 # <--> this instruction does not work, but the following does
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" && rvm --create @$1
# -------------------------------
# Use the gemset we just created