Sha256: 075bc5b6c073f1e9ec9b44df5b4a07d15226f196ce4d8c9c92ecfaef919153b3
Contents?: true
Size: 506 Bytes
Versions: 4
Compression:
Stored size: 506 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rvm-1.0.5 | contrib/gemset_snapshot |
rvm-1.0.4 | contrib/gemset_snapshot |
rvm-1.0.3 | contrib/gemset_snapshot |
rvm-1.0.2 | contrib/gemset_snapshot |