Method: Bundler::SharedHelpers#bundle_bin_path
- Defined in:
- lib/bundler/shared_helpers.rb
permalink #bundle_bin_path ⇒ Object
[View source]
313 314 315 316 317 318 319 320 321 322 323 324 |
# File 'lib/bundler/shared_helpers.rb', line 313 def bundle_bin_path # bundler exe & lib folders have same root folder, typical gem installation exe_file = File.join(source_root, "exe/bundle") # for Ruby core repository testing exe_file = File.join(source_root, "libexec/bundle") unless File.exist?(exe_file) # bundler is a default gem, exe path is separate exe_file = Gem.bin_path("bundler", "bundle", VERSION) unless File.exist?(exe_file) exe_file end |