diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-02-06 12:51:57 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-02-06 12:52:58 -0800 |
commit | 6c6ceec2e8758748add9de71983564ac529ccf3a (patch) | |
tree | 40c39c1cddcf9169b5d12903d14e9c985ed7a664 /lib/chef/knife/configure.rb | |
parent | 178721e4f44977ff2ef4bf58dcaba69698d81698 (diff) | |
download | chef-6c6ceec2e8758748add9de71983564ac529ccf3a.tar.gz |
Lazy load as many knife deps as possible
This gets us a small speedup on my mac, and probably a larger speedup on
Windows where the loading hurts more.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/knife/configure.rb')
-rw-r--r-- | lib/chef/knife/configure.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/configure.rb b/lib/chef/knife/configure.rb index 888b4290dd..1efbea3d67 100644 --- a/lib/chef/knife/configure.rb +++ b/lib/chef/knife/configure.rb @@ -17,7 +17,6 @@ # require_relative "../knife" -require_relative "../util/path_helper" require_relative "../dist" class Chef @@ -27,6 +26,7 @@ class Chef attr_reader :chef_repo, :new_client_key, :validation_client_name, :validation_key deps do + require_relative "../util/path_helper" require "ohai" unless defined?(Ohai::System) Chef::Knife::ClientCreate.load_deps Chef::Knife::UserCreate.load_deps |