Load filedownloader plugin

This commit is contained in:
sophia 2022-05-25 14:18:01 -05:00
parent ec2e2a6e89
commit 36081df049
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
//go:generate protoc -I ../../.. --go_opt=plugins=grpc --go_out=../../.. vagrant-ruby/builtin/filedownloader/proto/plugin.proto //go:generate protoc -I ../../.. --go_opt=plugins=grpc --go_out=../../.. vagrant-ruby/builtin/filedownloader/proto/plugin.proto
var CommandOptions = []sdk.Option{ var PluginOptions = []sdk.Option{
sdk.WithComponents( sdk.WithComponents(
&downloader.Downloader{}, &downloader.Downloader{},
), ),

View File

@ -15,6 +15,7 @@ import (
"github.com/hashicorp/vagrant-plugin-sdk/core" "github.com/hashicorp/vagrant-plugin-sdk/core"
"github.com/hashicorp/vagrant-plugin-sdk/internal-shared/cacher" "github.com/hashicorp/vagrant-plugin-sdk/internal-shared/cacher"
"github.com/hashicorp/vagrant-plugin-sdk/internal-shared/cleanup" "github.com/hashicorp/vagrant-plugin-sdk/internal-shared/cleanup"
"github.com/hashicorp/vagrant/builtin/filedownloader"
"github.com/hashicorp/vagrant/builtin/myplugin" "github.com/hashicorp/vagrant/builtin/myplugin"
"github.com/hashicorp/vagrant/builtin/otherplugin" "github.com/hashicorp/vagrant/builtin/otherplugin"
) )
@ -33,6 +34,7 @@ var (
Builtins = map[string][]sdk.Option{ Builtins = map[string][]sdk.Option{
"myplugin": myplugin.CommandOptions, "myplugin": myplugin.CommandOptions,
"otherplugin": otherplugin.CommandOptions, "otherplugin": otherplugin.CommandOptions,
"filedownloader": filedownloader.PluginOptions,
} }
) )