Add core plugin service client
This commit is contained in:
parent
e90c7a508f
commit
b3003e8cb6
@ -7,6 +7,7 @@ module VagrantPlugins
|
||||
autoload :CapabilityPlatform, Vagrant.source_root.join("plugins/commands/serve/client/capability_platform").to_s
|
||||
autoload :Communicator, Vagrant.source_root.join("plugins/commands/serve/client/communicator").to_s
|
||||
autoload :Command, Vagrant.source_root.join("plugins/commands/serve/client/command").to_s
|
||||
autoload :CorePluginManager, Vagrant.source_root.join("plugins/commands/serve/client/core_plugin_manager").to_s
|
||||
autoload :Guest, Vagrant.source_root.join("plugins/commands/serve/client/guest").to_s
|
||||
autoload :Host, Vagrant.source_root.join("plugins/commands/serve/client/host").to_s
|
||||
autoload :TargetIndex, Vagrant.source_root.join("plugins/commands/serve/client/target_index").to_s
|
||||
|
||||
16
plugins/commands/serve/client/core_plugin_manager.rb
Normal file
16
plugins/commands/serve/client/core_plugin_manager.rb
Normal file
@ -0,0 +1,16 @@
|
||||
module VagrantPlugins
|
||||
module CommandServe
|
||||
class Client
|
||||
class CorePluginManager < Client
|
||||
def get_plugin(type)
|
||||
resp = client.get_plugins(
|
||||
SDK::CorePluginManager::GetPluginRequest.new(
|
||||
type: type
|
||||
)
|
||||
)
|
||||
mapper.map(resp.plugin, broker)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user