Return synced folder + synced folder options from machine

This commit is contained in:
sophia 2021-11-29 13:46:58 -06:00 committed by Paul Hinze
parent fa1377528f
commit c71f27b17e
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -87,10 +87,16 @@ module VagrantPlugins
client.set_state(req)
end
# Synced folder for machine
#
# @return [List<[Client::SyncedFolder, Map<String, String>]>]
def synced_folders
folder_protos = client.synced_folders(Empty.new).synced_folders
folder_protos.map do |f|
SyncedFolder.load(f, broker: broker)
folder_protos.map do |fp|
{
plugin: SyncedFolder.load(fp.plugin, broker: broker),
folder: fp.folder.to_h,
}
end
end