Remote init from provider grpc api
This commit is contained in:
parent
809e4044a0
commit
526b7f2318
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user