Get hash of synced folders

This commit is contained in:
sophia 2022-02-11 17:42:42 -06:00 committed by Paul Hinze
parent bd42b1a61c
commit 8911ebd2b7
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0
2 changed files with 5 additions and 7 deletions

View File

@ -36,12 +36,10 @@ module VagrantPlugins
# Prepare synced folders on guest
#
# @param machine [Vagrant::Machine] Guest machine
# @param folders [Array] Synced folders
# @param folders [Hash] Synced folders
# @param opts [Hash] Options for folders
def prepare(machine, folders, opts)
spec, cb = prepare_func
cb.call(generate_funcspec_args(spec,
machine, folders, Type::Direct.new(value: opts)))
run_func(machine, folders, Type::Direct.new(value: opts))
end
# Generate callback and spec for required arguments
@ -58,7 +56,7 @@ module VagrantPlugins
# Enable synced folders on guest
#
# @param machine [Vagrant::Machine] Guest machine
# @param folders [Array] Synced folders
# @param folders [Hash] Synced folders
# @param opts [Hash] Options for folders
def enable(machine, folders, opts)
run_func(machine, folders, opts)
@ -78,7 +76,7 @@ module VagrantPlugins
# Disable synced folders on guest
#
# @param machine [Vagrant::Machine] Guest machine
# @param folders [Array] Synced folders
# @param folders [Hash] Synced folders
# @param opts [Hash] Options for folders
def disable(machine, folders, opts)
run_func(machine, folders, opts)

View File

@ -98,7 +98,7 @@ module VagrantPlugins
name: "",
),
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Folder",
type: "hashicorp.vagrant.sdk.Args.Hash",
name: "",
),
SDK::FuncSpec::Value.new(