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