Method: Bundler::CLI#exec

Defined in:
lib/bundler/cli.rb

#exec(*args) ⇒ Object



444
445
446
447
448
449
450
451
452
453
# File 'lib/bundler/cli.rb', line 444

def exec(*args)
  if ARGV.include?("--no-keep-file-descriptors")
    message = "The `--no-keep-file-descriptors` has been deprecated. `bundle exec` no longer mess with your file descriptors. Close them in the exec'd script if you need to"
    removed_message = "The `--no-keep-file-descriptors` has been removed. `bundle exec` no longer mess with your file descriptors. Close them in the exec'd script if you need to"
    SharedHelpers.major_deprecation(2, message, removed_message: removed_message)
  end

  require_relative "cli/exec"
  Exec.new(options, args).run
end