Created
September 7, 2012 02:47
-
-
Save komiya-atsushi/3662679 to your computer and use it in GitHub Desktop.
production.cf.rubygems.org から .gem ファイルをダウンロードする gem コマンドのラッパー (シェルスクリプト)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ORIGINAL_SOURCE=http://rubygems.org/ | |
MIRROR_SOURCE=http://production.cf.rubygems.org/ | |
gem sources -r $ORIGINAL_SOURCE | |
gem sources -a $MIRROR_SOURCE | |
gem $* | |
gem sources -r $MIRROR_SOURCE | |
gem sources -a $ORIGINAL_SOURCE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment