Clean up constant aliases and set at top level for everyone
This commit is contained in:
parent
ce29c48931
commit
dc32d6e9a0
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user