Setting gems is not verbose despite .gemrc

This is my .gemrc

:verbose: true

      

I copied the same .gemrc

in /root/

and /home/vagrant/

out to make sure the usage sudo

doesn't mess with me.

I have verified that the setting works 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 when doing:

root@vagrant $ gem install knife-solo

      

I get "less verbose" output than when I did:

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

      

although the file .gemrc

installs verbose

as true

.

What am I missing?

+3


source to share


1 answer


To set a parameter --verbose

or --no-verbose

for a gem command, add the command to the gem key in ~/.gemrc

:



gem: --no-ri --no-rdoc --verbose

      

+2


source







All Articles