packer-cn/plugin/provisioner-windows-restart/main.go

16 lines
281 B
Go
Raw Normal View History

2015-06-14 14:14:47 -04:00
package main
import (
"github.com/mitchellh/packer/packer/plugin"
"github.com/mitchellh/packer/provisioner/windows-restart"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterProvisioner(new(restart.Provisioner))
server.Serve()
}