mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Get hash of synced folders
This commit is contained in:
parent
bd42b1a61c
commit
8911ebd2b7
2 changed files with 5 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue