summaryrefslogtreecommitdiff
path: root/chef-bin/bin
diff options
context:
space:
mode:
authorLance Albertson <lance@osuosl.org>2020-08-31 12:09:27 -0700
committerLance Albertson <lance@osuosl.org>2020-09-15 14:04:36 -0700
commit9ade086b6e0f64ae0610e3ecd2fb1d99b6d91962 (patch)
tree7490629f78f60e3f4af0950f1fc3d435fad8a0e5 /chef-bin/bin
parent00595f5e2c5069716fe42f386ea377e56bda56ce (diff)
downloadchef-9ade086b6e0f64ae0610e3ecd2fb1d99b6d91962.tar.gz
Workaround rubygems slow requires by only running require for chef-utils/dist
Signed-off-by: Lance Albertson <lance@osuosl.org>
Diffstat (limited to 'chef-bin/bin')
-rwxr-xr-xchef-bin/bin/chef-service-manager2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef-bin/bin/chef-service-manager b/chef-bin/bin/chef-service-manager
index c7b1177447..dcaae80141 100755
--- a/chef-bin/bin/chef-service-manager
+++ b/chef-bin/bin/chef-service-manager
@@ -21,7 +21,7 @@
$:.unshift(File.join(__dir__, "..", "lib"))
require "chef"
require "chef/application/windows_service_manager"
-require "chef-utils/dist"
+require "chef-utils/dist" unless defined?(ChefUtils::Dist)
if Chef::Platform.windows?
chef_client_service = {