From 9dbdb769bfd963f82eb4bfea53c83501d0193766 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 20 May 2019 18:05:36 -0700 Subject: This hits the ones that are most frequently required. Stops the kernel from scanning through all the activated gems every time in order to resolve names into pathnames. See rubygems/rubygems#2762 Signed-off-by: Lamont Granquist --- lib/chef/shell.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/chef/shell.rb') diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb index 901a13cd0f..831b3438ef 100644 --- a/lib/chef/shell.rb +++ b/lib/chef/shell.rb @@ -15,10 +15,10 @@ # limitations under the License. # -require "singleton" -require "pp" -require "etc" -require "mixlib/cli" +require "singleton" unless defined?(Singleton) +require "pp" unless defined?(PP) +require "etc" unless defined?(Etc) +require "mixlib/cli" unless defined?(Mixlib::CLI) require_relative "../chef" require_relative "version" -- cgit v1.2.1