Ruby 包管理工具gem查看/修改源

2019-07-16  本文已影响0人  大城子

查看当前gem源

AAAA:~ AAA$ gem sources
*** CURRENT SOURCES ***

https://gems.ruby-china.org/

修改gem源

/*
  * Options:
  *  -a, --add SOURCE_URI             Add source
  *  -l, --list                       List sources
  *  -r, --remove SOURCE_URI          Remove source
  *  -c, --clear-all                  Remove all sources (clear the cache)
  *  -u, --update                     Update source cache
*/

gem sources -a 添加源
上一篇 下一篇

猜你喜欢

热点阅读