From 4e869330cd85d8055fbde9a131308990abf98c22 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Mon, 13 Jun 2022 16:16:31 -0700 Subject: [PATCH] Load config service and use global cache --- plugins/commands/serve/service.rb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/commands/serve/service.rb b/plugins/commands/serve/service.rb index f56742479..31fe795f3 100644 --- a/plugins/commands/serve/service.rb +++ b/plugins/commands/serve/service.rb @@ -4,8 +4,6 @@ module VagrantPlugins module CommandServe module Service class << self - attr_reader :cache - def method_missing(name, *args) if name == :ProtoService return protoService(*args) @@ -34,17 +32,16 @@ module VagrantPlugins end def cache - Service.cache + CommandServe.cache end end end end - @cache = Util::Cacher.new - autoload :CapabilityPlatformService, Vagrant.source_root.join("plugins/commands/serve/service/capability_platform_service").to_s autoload :CommandService, Vagrant.source_root.join("plugins/commands/serve/service/command_service").to_s autoload :CommunicatorService, Vagrant.source_root.join("plugins/commands/serve/service/communicator_service").to_s + autoload :ConfigService, Vagrant.source_root.join("plugins/commands/serve/service/config_service").to_s autoload :GuestService, Vagrant.source_root.join("plugins/commands/serve/service/guest_service").to_s autoload :HostService, Vagrant.source_root.join("plugins/commands/serve/service/host_service").to_s autoload :InternalService, Vagrant.source_root.join("plugins/commands/serve/service/internal_service").to_s