Add main() for file builder

This commit is contained in:
Chris Bednarski 2015-06-12 17:35:17 -07:00
parent 766d217ed7
commit f7d85eb49c
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
package main
import (
"github.com/mitchellh/packer/builder/file"
"github.com/mitchellh/packer/packer/plugin"
)
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
server.RegisterBuilder(new(file.Builder))
server.Serve()
}