forked from outscale/packer-plugin-outscale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
28 lines (24 loc) · 799 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/outscale/packer-plugin-outscale/builder/osc/bsu"
"github.com/outscale/packer-plugin-outscale/builder/osc/bsusurrogate"
"github.com/outscale/packer-plugin-outscale/builder/osc/bsuvolume"
"github.com/outscale/packer-plugin-outscale/builder/osc/chroot"
"github.com/outscale/packer-plugin-outscale/version"
)
func main() {
pps := plugin.NewSet()
pps.SetVersion(version.PluginVersion)
pps.RegisterBuilder("bsu", new(bsu.Builder))
pps.RegisterBuilder("chroot", new(chroot.Builder))
pps.RegisterBuilder("bsusurrogate", new(bsusurrogate.Builder))
pps.RegisterBuilder("bsuvolume", new(bsuvolume.Builder))
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}