Load filedownloader plugin
This commit is contained in:
parent
ec2e2a6e89
commit
36081df049
@ -7,7 +7,7 @@ import (
|
||||
|
||||
//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(
|
||||
&downloader.Downloader{},
|
||||
),
|
||||
|
||||
@ -15,6 +15,7 @@ import (
|
||||
"github.com/hashicorp/vagrant-plugin-sdk/core"
|
||||
"github.com/hashicorp/vagrant-plugin-sdk/internal-shared/cacher"
|
||||
"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/otherplugin"
|
||||
)
|
||||
@ -33,6 +34,7 @@ var (
|
||||
Builtins = map[string][]sdk.Option{
|
||||
"myplugin": myplugin.CommandOptions,
|
||||
"otherplugin": otherplugin.CommandOptions,
|
||||
"filedownloader": filedownloader.PluginOptions,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user