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
|
//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{},
|
||||||
),
|
),
|
||||||
|
|||||||
@ -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"
|
||||||
)
|
)
|
||||||
@ -31,8 +32,9 @@ var (
|
|||||||
// Builtins is the map of all available builtin plugins and their
|
// Builtins is the map of all available builtin plugins and their
|
||||||
// options for launching them.
|
// options for launching them.
|
||||||
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,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user