Files
Packer-Cn/post-processor/vagrant/post-processor.go
T

27 lines
548 B
Go

// 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",
}
type Config struct {}
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
}