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

Version Path
rvm-0.0.59 scripts/gemsync
rvm-0.0.58 scripts/gemsync
rvm-0.0.57 scripts/gemsync
rvm-0.0.56 scripts/gemsync
rvm-0.0.55 scripts/gemsync
rvm-0.0.54 scripts/gemsync
rvm-0.0.53 scripts/gemsync
rvm-0.0.52 scripts/gemsync
rvm-0.0.51 scripts/gemsync
rvm-0.0.50 scripts/gemsync
rvm-0.0.49 scripts/gemsync
rvm-0.0.48 scripts/gemsync
rvm-0.0.47 scripts/gemsync
rvm-0.0.46 scripts/gemsync
rvm-0.0.45 scripts/gemsync