1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

When is Bundler loaded by puma-wild?

This commit is contained in:
Tim Morgan 2020-02-13 15:39:49 -06:00
parent 2ed158ecac
commit 359cb697db
3 changed files with 8 additions and 1 deletions

View file

@ -28,4 +28,5 @@ require 'puma/cli'
cli = Puma::CLI.new ARGV
puts "puma-wild defined?(Bundler) = #{defined?(Bundler).inspect}"
cli.run

View file

@ -299,8 +299,12 @@ module Puma
# a Gemfile
if ENV.key? 'PUMA_BUNDLER_PRUNED'
begin
puts '>>>> loading Bundler...'
require 'bundler/setup'
rescue LoadError
puts 'failed'
else
puts 'success'
end
end

View file

@ -286,7 +286,9 @@ module Puma
end
def prune_bundler
return if ENV.key?('PUMA_BUNDLER_PRUNED')
puts '>>>> prune_bundler starting...'
puts "prune_bundler defined?(Bundler) = #{defined?(Bundler).inspect}"
#return if ENV.key?('PUMA_BUNDLER_PRUNED')
return unless defined?(Bundler)
require_rubygems_min_version!(Gem::Version.new("2.2"), "prune_bundler")
unless puma_wild_location