Define synced folder service endpoints

This commit is contained in:
sophia 2021-10-19 11:25:39 -05:00 committed by Paul Hinze
parent 0a878721f5
commit 7e0fcc0a24
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -52,17 +52,15 @@ module VagrantPlugins
name: "",
),
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.OptionsHash",
type: "hashicorp.vagrant.sdk.Args.Folder",
name: "",
),
#TODO
],
result: [
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.SyncedFolder.UsableResp",
type: "hashicorp.vagrant.sdk.Args.Direct",
name: "",
),
],
result: [],
)
end
@ -72,6 +70,55 @@ module VagrantPlugins
end
end
def disable_spec(*_)
SDK::FuncSpec.new(
name: "disable_spec",
args: [
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target.Machine",
name: "",
),
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Folder",
name: "",
),
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Direct",
name: "",
),
],
result: [],
)
end
def disable(req, ctx)
with_info(ctx) do |info|
# TODO
end
end
def cleanup_spec(*_)
SDK::FuncSpec.new(
name: "cleanup_spec",
args: [
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Target.Machine",
name: "",
),
SDK::FuncSpec::Value.new(
type: "hashicorp.vagrant.sdk.Args.Direct",
name: "",
),
],
result: [],
)
end
def cleanup(req, ctx)
with_info(ctx) do |info|
# TODO
end
end
end
end