From 526b7f2318deb82a84e7096a2d76dd492d0571e4 Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 24 Jan 2022 11:06:51 -0600 Subject: [PATCH] Remote init from provider grpc api --- .../proto/vagrant_plugin_sdk/plugin_services_pb.rb | 2 -- plugins/commands/serve/client/provider.rb | 5 ----- plugins/commands/serve/service/provider_service.rb | 10 ---------- 3 files changed, 17 deletions(-) diff --git a/lib/vagrant/protobufs/proto/vagrant_plugin_sdk/plugin_services_pb.rb b/lib/vagrant/protobufs/proto/vagrant_plugin_sdk/plugin_services_pb.rb index ecb7fafb2..cfc7722df 100644 --- a/lib/vagrant/protobufs/proto/vagrant_plugin_sdk/plugin_services_pb.rb +++ b/lib/vagrant/protobufs/proto/vagrant_plugin_sdk/plugin_services_pb.rb @@ -120,8 +120,6 @@ module Hashicorp rpc :UsableSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec rpc :Installed, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Hashicorp::Vagrant::Sdk::Provider::InstalledResp rpc :InstalledSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec - rpc :Init, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty - rpc :InitSpec, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::Sdk::FuncSpec rpc :Action, ::Hashicorp::Vagrant::Sdk::Provider::ActionRequest, ::Google::Protobuf::Empty rpc :ActionSpec, ::Hashicorp::Vagrant::Sdk::Provider::ActionRequest, ::Hashicorp::Vagrant::Sdk::FuncSpec rpc :MachineIdChanged, ::Hashicorp::Vagrant::Sdk::FuncSpec::Args, ::Google::Protobuf::Empty diff --git a/plugins/commands/serve/client/provider.rb b/plugins/commands/serve/client/provider.rb index 3c5e0b5b4..a03480287 100644 --- a/plugins/commands/serve/client/provider.rb +++ b/plugins/commands/serve/client/provider.rb @@ -28,11 +28,6 @@ module VagrantPlugins res.is_installed end - # @param [Sdk::Args::Machine] - def init(machine) - # TODO - end - # @param [Symbol] name of the action to run def action(name, *args) d = Type::Direct.new(arguments: args) diff --git a/plugins/commands/serve/service/provider_service.rb b/plugins/commands/serve/service/provider_service.rb index e757bc1f0..b04164677 100644 --- a/plugins/commands/serve/service/provider_service.rb +++ b/plugins/commands/serve/service/provider_service.rb @@ -62,16 +62,6 @@ module VagrantPlugins end end - def init_spec(*_) - # TODO - nil - end - - def init(req, ctx) - # TODO - nil - end - def action_spec(req, _unused_call) SDK::FuncSpec.new( name: "capability_spec",