Method: Bundler.system_bindir
- Defined in:
- lib/bundler.rb
.system_bindir ⇒ Object
455 456 457 458 459 460 461 462 |
# File 'lib/bundler.rb', line 455 def system_bindir # Gem.bindir doesn't always return the location that RubyGems will install # system binaries. If you put '-n foo' in your .gemrc, RubyGems will # install binstubs there instead. Unfortunately, RubyGems doesn't expose # that directory at all, so rather than parse .gemrc ourselves, we allow # the directory to be set as well, via `bundle config set --local bindir foo`. Bundler.settings[:system_bindir] || Bundler.rubygems.gem_bindir end |