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
wayneeseguin-rvm-0.0.45 scripts/gemsync
wayneeseguin-rvm-0.0.46 scripts/gemsync
wayneeseguin-rvm-0.0.47 scripts/gemsync
rvm-0.0.76 binscripts/gemsync
rvm-0.0.75 binscripts/gemsync
rvm-0.0.74 scripts/gemsync
rvm-0.0.73 scripts/gemsync
rvm-0.0.72 scripts/gemsync
rvm-0.0.71 scripts/gemsync
rvm-0.0.70 scripts/gemsync
rvm-0.0.69 scripts/gemsync
rvm-0.0.68 scripts/gemsync
rvm-0.0.67 scripts/gemsync
rvm-0.0.66 scripts/gemsync
rvm-0.0.65 scripts/gemsync
rvm-0.0.64 scripts/gemsync
rvm-0.0.63 scripts/gemsync
rvm-0.0.62 scripts/gemsync
rvm-0.0.61 scripts/gemsync
rvm-0.0.60 scripts/gemsync