2013-12-22 12:24:29 -05:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
2015-05-27 17:01:08 -04:00
|
|
|
"github.com/mitchellh/packer/template/interpolate"
|
2013-12-22 12:24:29 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
type VBoxManageConfig struct {
|
|
|
|
VBoxManage [][]string `mapstructure:"vboxmanage"`
|
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
func (c *VBoxManageConfig) Prepare(ctx *interpolate.Context) []error {
|
2013-12-22 12:24:29 -05:00
|
|
|
if c.VBoxManage == nil {
|
|
|
|
c.VBoxManage = make([][]string, 0)
|
|
|
|
}
|
|
|
|
|
2015-05-27 17:01:08 -04:00
|
|
|
return nil
|
2013-12-22 12:24:29 -05:00
|
|
|
}
|