Sha256: 70f5b6a4bb1dc8fd9fdcc41911819a7d999ae618b3ad77319804d9879c0e319f
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
#!/usr/bin/env 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rvm-0.0.80 | binscripts/gemsync |
rvm-0.0.79 | binscripts/gemsync |
rvm-0.0.78 | binscripts/gemsync |
rvm-0.0.77 | binscripts/gemsync |