From 21b17e190790b0e2b48fdfb31ed2aeda7beb32a9 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Wed, 15 Jun 2022 12:50:59 -0700 Subject: [PATCH] Add extra parsing functions and change result type --- .../server/proto/ruby_vagrant/ruby-server.proto | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/internal/server/proto/ruby_vagrant/ruby-server.proto b/internal/server/proto/ruby_vagrant/ruby-server.proto index 8bccdc0d5..482a8f526 100644 --- a/internal/server/proto/ruby_vagrant/ruby-server.proto +++ b/internal/server/proto/ruby_vagrant/ruby-server.proto @@ -15,6 +15,8 @@ service RubyVagrant { // Gets available ruby plugins rpc GetPlugins(google.protobuf.Empty) returns (GetPluginsResponse); rpc ParseVagrantfile(ParseVagrantfileRequest) returns (ParseVagrantfileResponse); + rpc ParseVagrantfileProc(ParseVagrantfileProcRequest) returns (ParseVagrantfileResponse); + rpc ParseVagrantfileSubvm(ParseVagrantfileSubvmRequest) returns (ParseVagrantfileResponse); } /******************************************************************** @@ -64,10 +66,17 @@ message Plugin { message ParseVagrantfileRequest { // Path to the Vagrantfile string path = 1; - // TODO: might be good to add an option for passing cmd line args +} + +message ParseVagrantfileProcRequest { + sdk.Args.ProcRef proc = 1; } message ParseVagrantfileResponse { // Vagrantfile representation - sdk.Vagrantfile.Vagrantfile vagrantfile = 1; + sdk.Args.Hash data = 1; +} + +message ParseVagrantfileSubvmRequest { + sdk.Config.RawRubyValue subvm = 1; }