Load config service and use global cache
This commit is contained in:
parent
8061a95a81
commit
4e869330cd
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user