Guest User

Untitled

a guest
Oct 15th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/sh
  2. # USAGE ./create_rvmrc.sh project_name
  3. CODEDIR=~/code/
  4.  
  5. PROJECTNAME=$1
  6. DIRNAME=$CODEDIR$PROJECTNAME
  7. if [ $# -lt 1 ] ; then
  8. echo usage is to specify the project name
  9. echo $0 projectname
  10. exit 0
  11. fi
  12.  
  13. rvm default
  14. rvm gemset create $PROJECTNAME
  15. echo "rvm use default@$PROJECTNAME">$DIRNAME/.rvmrc
  16. echo "rvm gemset list">>$DIRNAME/.rvmrc
Add Comment
Please, Sign In to add comment