summaryrefslogtreecommitdiff
path: root/lib/chef/knife/rehash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/rehash.rb')
-rw-r--r--lib/chef/knife/rehash.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/chef/knife/rehash.rb b/lib/chef/knife/rehash.rb
index f4294e8e3b..ed70aa9f24 100644
--- a/lib/chef/knife/rehash.rb
+++ b/lib/chef/knife/rehash.rb
@@ -17,13 +17,16 @@
#
require_relative "../knife"
-require_relative "core/subcommand_loader"
class Chef
class Knife
class Rehash < Chef::Knife
banner "knife rehash"
+ deps do
+ require_relative "core/subcommand_loader"
+ end
+
def run
if ! Chef::Knife::SubcommandLoader.autogenerated_manifest?
ui.msg "Using knife-rehash will speed up knife's load time by caching the location of subcommands on disk."