From eb165d43d15093af25373cb3fed626c31cf04527 Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 12 Jan 2021 16:28:21 -0600 Subject: [PATCH] Add proto defs for Vagrantfile parser service --- lib/vagrant/proto/gen/ruby-server_pb.rb | 12 ++++++++++++ lib/vagrant/proto/gen/ruby-server_services_pb.rb | 1 + 2 files changed, 13 insertions(+) diff --git a/lib/vagrant/proto/gen/ruby-server_pb.rb b/lib/vagrant/proto/gen/ruby-server_pb.rb index cfff7ad66..48eb5b230 100644 --- a/lib/vagrant/proto/gen/ruby-server_pb.rb +++ b/lib/vagrant/proto/gen/ruby-server_pb.rb @@ -22,6 +22,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do value :PROVISIONER, 5 value :SYNCED_FOLDER, 6 end + add_message "hashicorp.vagrant.ParseVagrantfileRequest" do + optional :path, :string, 1 + end + add_message "hashicorp.vagrant.ParseVagrantfileResponse" do + optional :vagrantfile, :message, 1, "hashicorp.vagrant.Vagrantfile" + end + add_message "hashicorp.vagrant.Vagrantfile" do + optional :raw, :string, 1 + end end end @@ -30,5 +39,8 @@ module Hashicorp GetPluginsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.GetPluginsResponse").msgclass Plugin = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Plugin").msgclass Plugin::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Plugin.Type").enummodule + ParseVagrantfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ParseVagrantfileRequest").msgclass + ParseVagrantfileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.ParseVagrantfileResponse").msgclass + Vagrantfile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("hashicorp.vagrant.Vagrantfile").msgclass end end diff --git a/lib/vagrant/proto/gen/ruby-server_services_pb.rb b/lib/vagrant/proto/gen/ruby-server_services_pb.rb index e7fc2996c..97dbd907d 100644 --- a/lib/vagrant/proto/gen/ruby-server_services_pb.rb +++ b/lib/vagrant/proto/gen/ruby-server_services_pb.rb @@ -18,6 +18,7 @@ module Hashicorp # Gets available ruby plugins rpc :GetPlugins, ::Google::Protobuf::Empty, ::Hashicorp::Vagrant::GetPluginsResponse + rpc :ParseVagrantfile, ::Hashicorp::Vagrant::ParseVagrantfileRequest, ::Hashicorp::Vagrant::ParseVagrantfileResponse end Stub = Service.rpc_stub_class