Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install of gems is not verbose, despite .gemrc

This is my .gemrc

:verbose: true

I have copied the same .gemrc into /root/ and into /home/vagrant/, to make sure that using sudo isn't messing with me.

I have checked the setting is working with:

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/

The problem is that that when I execute:

root@vagrant $ gem install knife-solo

I get a "less verbose" output than when I execute:

root@vagrant $ gem install knife-solo --verbose

even though the .gemrc file sets the verbose as true.

What am I missing?

like image 231
Enrique Moreno Tent Avatar asked Dec 08 '25 20:12

Enrique Moreno Tent


1 Answers

To set the --verbose or --no-verbose option for the gem command, add the command to the gem key in ~/.gemrc:

gem: --no-ri --no-rdoc --verbose
like image 140
infused Avatar answered Dec 10 '25 17:12

infused