2013-06-26 20:37:46 -04:00
|
|
|
// vagrant implements the packer.PostProcessor interface and adds a
|
|
|
|
// post-processor that turns artifacts of known builders into Vagrant
|
|
|
|
// boxes.
|
|
|
|
package vagrant
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mitchellh/packer/packer"
|
|
|
|
)
|
|
|
|
|
|
|
|
var builtins = map[string]string{
|
|
|
|
"mitchellh.amazonebs": "aws",
|
|
|
|
}
|
|
|
|
|
2013-06-26 21:55:11 -04:00
|
|
|
type Config struct{}
|
2013-06-26 20:37:46 -04:00
|
|
|
|
|
|
|
type PostProcessor struct {
|
|
|
|
config Config
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *PostProcessor) Configure(raw interface{}) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p *PostProcessor) PostProcess(ui packer.Ui, artifact packer.Artifact) (packer.Artifact, error) {
|
|
|
|
return nil, nil
|
|
|
|
}
|