gem 源管理工具 gsm sources manager

gsm sources manager

gsm 是一個 gem 源管理工具。在 Ruby 開發中,因爲國內的網絡問題,咱們每每須要替換默認的 https://rubygems.org/ 源。gsm 能夠爲你管理不一樣的源。git

gsm 是一個遞歸命名 gsm sources manager,同時也能夠是 gem sources manager 的意思。github

項目首頁:https://crispgm.github.io/gsm/
項目地址:https://github.com/crispgm/gsmruby

安裝

使用 gem 安裝

$ gem install gsm-sources-manager
$ gsm --version

手動安裝

$ git clone https://github.com/crispgm/gsm.git
$ bundle install
$ bundle exec exe/gsm --version

使用

第一次啓動後,gsm 會自動從 gem sources -l 加載源。網絡

List

列出現有源。工具

$ gsm list

Use

應用一個源。code

$ gsm use Amethyst

Add

添加源。遞歸

--use: 添加的同時應用源。等效於先執行 gsm addgsm use開發

$ gsm add Amethyst https://rubygems.org/

Del

刪除源。get

$ gsm del Amethyst

Reset

重置全部源。it

$ gsm reset

Mirror

將當前應用的源映射到 bundle mirror

--reset: 重置 bundler mirror

$ gsm mirror Amethyst

最後

歡迎使用而且貢獻給項目。

https://github.com/crispgm/gsm

相關文章
相關標籤/搜索