Sha256: 9398aef9c645a363377f8b74d6d467cbc61f99c295bf2dd4f295406e50034889

Contents?: true

Size: 503 Bytes

Versions: 10

Compression:

Stored size: 503 Bytes

Contents

#!/usr/bin/env bash

echo "Snapshotting the current environment gem list into snapshot.gems"
file_name="snapshot.gems"
echo '# system snapshot gemset file' > snapshot.gems
for gem in $(gem list | sed 's#[\(|\)]##g' | sed 's#, #,#g' | tr ' ' ';') ; do
  name="$(echo $gem | awk -F';' '{print $1}')"
  versions="$(echo $gem | awk -F';' '{print $2}' | sed 's#,# #g')"
  for version in $versions ; do
    echo "$name -v$version" >> $file_name
  done ; unset version versions
done ; unset file_name

exit $?

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rvm-0.1.43 contrib/gemset_snapshot
rvm-0.1.42 contrib/gemset_snapshot
rvm-0.1.41 contrib/gemset_snapshot
rvm-0.1.40 contrib/gemset_snapshot
rvm-0.1.39 contrib/gemset_snapshot
rvm-0.1.38 contrib/gemset_snapshot
rvm-0.1.37 contrib/gemset_snapshot
rvm-0.1.36 contrib/gemset_snapshot
rvm-0.1.35 contrib/gemset_snapshot
rvm-0.1.34 contrib/gemset_snapshot