summaryrefslogtreecommitdiff
path: root/lib/chef/digester.rb
diff options
context:
space:
mode:
authormwrock <matt@mattwrock.com>2020-09-04 18:46:27 -0700
committermwrock <matt@mattwrock.com>2020-09-08 14:46:36 -0700
commit41ae92bd5070b450e04f02ae9a1d30987d14bb93 (patch)
tree952399197c5344e29a648560fda242ef77a7dd7e /lib/chef/digester.rb
parent313afa345a0d19019218807a16bf6fdd6447a87b (diff)
downloadchef-41ae92bd5070b450e04f02ae9a1d30987d14bb93.tar.gz
use autoloading for many required gems
Signed-off-by: mwrock <matt@mattwrock.com>
Diffstat (limited to 'lib/chef/digester.rb')
-rw-r--r--lib/chef/digester.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/digester.rb b/lib/chef/digester.rb
index b9180ddd24..36df63f3a1 100644
--- a/lib/chef/digester.rb
+++ b/lib/chef/digester.rb
@@ -18,8 +18,8 @@
# limitations under the License.
#
-require "openssl" unless defined?(OpenSSL)
-require "digest" unless defined?(Digest)
+autoload :OpenSSL, "openssl"
+autoload :Digest, "digest"
require "singleton" unless defined?(Singleton)
class Chef