Clean up constant aliases and set at top level for everyone

This commit is contained in:
Chris Roberts 2021-08-26 15:03:14 -07:00 committed by Paul Hinze
parent ce29c48931
commit dc32d6e9a0
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
3 changed files with 5 additions and 11 deletions

View File

@ -1,12 +1,6 @@
module VagrantPlugins
module CommandServe
module Client
# Simple alias
Empty = Google::Protobuf::Empty
SDK = Service::SDK
SRV = Service::SRV
ServiceInfo = Service::ServiceInfo
autoload :Guest, Vagrant.source_root.join("plugins/commands/serve/client/guest").to_s
autoload :Machine, Vagrant.source_root.join("plugins/commands/serve/client/machine").to_s
autoload :TargetIndex, Vagrant.source_root.join("plugins/commands/serve/client/target_index").to_s

View File

@ -18,9 +18,14 @@ require 'grpc/health/v1/health_services_pb'
module VagrantPlugins
module CommandServe
# Simple constant aliases to reduce namespace typing
SDK = Hashicorp::Vagrant::Sdk
SRV = Hashicorp::Vagrant
Empty = Google::Protobuf::Empty
autoload :Broker, Vagrant.source_root.join("plugins/commands/serve/broker").to_s
autoload :Client, Vagrant.source_root.join("plugins/commands/serve/client").to_s
autoload :Mappers, Vagrant.source_root.join("plugins/commands/serve/mappers").to_s
autoload :Service, Vagrant.source_root.join("plugins/commands/serve/service").to_s
autoload :Util, Vagrant.source_root.join("plugins/commands/serve/util").to_s

View File

@ -1,11 +1,6 @@
module VagrantPlugins
module CommandServe
module Service
# Simple aliases
SDK = Hashicorp::Vagrant::Sdk
SRV = Hashicorp::Vagrant
autoload :CommandService, Vagrant.source_root.join("plugins/commands/serve/service/command_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