Sha256: e8ccc6541c235f26b1acc8c4cf8e80e8ebf6b1582994d91ff2536e5f4558660e
Contents?: true
Size: 643 Bytes
Versions: 35
Compression:
Stored size: 643 Bytes
Contents
#/bin/bash # # gemsync - Standalone gemsync utility. # # Example: # gemsync --from 1.8.6 -m foo --to 1.9.1 -m bar # source ~/.bash_profile # load rvm from_string=`echo "$@" | sed 's/--/;/g' | tr ';' "\n" | awk '/from/ {print}' | sed 's/from//'` to_string=`echo "$@" | sed 's/--/;/g' | tr ';' "\n" | awk '/to/ {print}' | sed 's/to//'` if [ -z "$from_string" ] ; then echo "Invalid arguments. Missing --from <ruby selector>" ; exit 1 ; fi if [ -z "$to_string" ] ; then echo "Invalid arguments. Missing --to <ruby selector>" ; exit 1 ; fi # first we use where we want. rvm $to_string # Then we sync from the source. rvm sync $from_string
Version data entries
35 entries across 35 versions & 2 rubygems