From bc7687e56763cedbd010cfd566aa2fc0c53bb194 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 8 May 2019 17:03:26 -0700 Subject: Convert require to require_relative This gives a speed boost since rubygems does not have to scan through every gem in the gemset in order to find the file. Signed-off-by: Lamont Granquist --- lib/chef/knife/node_environment_set.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/chef/knife/node_environment_set.rb') diff --git a/lib/chef/knife/node_environment_set.rb b/lib/chef/knife/node_environment_set.rb index ecba01be29..b5f8a6ed7d 100644 --- a/lib/chef/knife/node_environment_set.rb +++ b/lib/chef/knife/node_environment_set.rb @@ -16,14 +16,14 @@ # limitations under the License. # -require "chef/knife" +require_relative "" class Chef class Knife class NodeEnvironmentSet < Knife deps do - require "chef/node" + require_relative "../node" end banner "knife node environment set NODE ENVIRONMENT" -- cgit v1.2.1