packer-cn/builder/virtualbox/common/vbox_version_config.go

18 lines
338 B
Go
Raw Normal View History

2013-12-22 14:50:29 -05:00
package common
import (
"github.com/mitchellh/packer/template/interpolate"
2013-12-22 14:50:29 -05:00
)
type VBoxVersionConfig struct {
VBoxVersionFile string `mapstructure:"virtualbox_version_file"`
}
func (c *VBoxVersionConfig) Prepare(ctx *interpolate.Context) []error {
2013-12-22 14:50:29 -05:00
if c.VBoxVersionFile == "" {
c.VBoxVersionFile = ".vbox_version"
}
return nil
2013-12-22 14:50:29 -05:00
}