gem which
encontra a localização de um arquivo biblioteca em gemas. Não há taps.rb
em /usr/local/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/
, então você recebeu a mensagem acima:
# ls -l /usr/local/lib/ruby/gems/1.8/gems/taps-0.3.23/lib/
total 8
drwxr-xr-x 2 root root 4096 Aug 27 10:31 taps
drwxr-xr-x 2 root root 4096 Aug 27 10:31 vendor
Outro exemplo com fantoche:
# ls -l /usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.1/lib/
total 8
drwxr-xr-x 30 root root 4096 Jul 18 16:41 puppet
-rw-rw-r-- 1 root root 3781 Jul 18 16:41 puppet.rb
# gem which puppet
/usr/local/lib/ruby/gems/1.8/gems/puppet-2.7.1/lib/puppet
So what command would you use to verify that the taps (or puppet) gem is present and working?
gem list taps
*** LOCAL GEMS ***
taps (0.3.23)
e:
taps -h
Options
=======
server Start a taps database import/export server
pull Pull a database from a taps server
push Push a database to a taps server
version Taps version
Add '-h' to any command to see their usage