这是我的.gemrc
:verbose: true
我已经将相同的内容复制.gemrc
到/root/
和/home/vagrant/
中,以确保使用sudo
不会影响我。
我已经检查了该设置是否适用:
root@vagrant $ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.23
- RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/1.9.1
- /root/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
问题是当我执行时:
root@vagrant $ gem install knife-solo
与执行时相比,我得到“不那么冗长”的输出:
root@vagrant $ gem install knife-solo --verbose
即使.gemrc
文件设置verbose
为true
.
我错过了什么?