Save machine index entries remotely

This commit is contained in:
sophia 2021-08-09 16:48:42 -04:00 committed by Paul Hinze
parent 6f54cf51a2
commit 01fc2926c9
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 7 additions and 8 deletions

View File

@ -67,7 +67,8 @@ module Vagrant
# @param [Entry] entry
# @return [Entry]
def set(entry)
entry.remote_machine.save
entry.remote_machine.client.save
entry
end
def recover(entry)
@ -76,13 +77,6 @@ module Vagrant
protected
# Converts a machine index entry to a machine
#
# @param [Vagrant::MachineIndex::Entry]
# @return [Hashicorp::Vagrant::Sdk::Args::Target]
def entry_to_machine(entry)
end
# Converts a machine to a machine index entry
#
# @param [Hashicorp::Vagrant::Sdk::Args::Target]

View File

@ -24,6 +24,11 @@ module VagrantPlugins
SDK::Ref::Machine.new(resource_id: resource_id)
end
def save
req = Google::Protobuf::Empty.new
@client.save(req)
end
# @return [String] machine name
def get_name
req = Google::Protobuf::Empty.new