Save machine index entries remotely
This commit is contained in:
parent
6f54cf51a2
commit
01fc2926c9
@ -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]
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user