2013-05-22 18:39:30 -04:00
|
|
|
package packer
|
|
|
|
|
|
|
|
type TestProvisioner struct {
|
|
|
|
prepCalled bool
|
2013-05-22 19:29:07 -04:00
|
|
|
prepConfig interface{}
|
|
|
|
prepUi Ui
|
2013-05-22 18:39:30 -04:00
|
|
|
provCalled bool
|
|
|
|
}
|
|
|
|
|
2013-05-22 19:29:07 -04:00
|
|
|
func (t *TestProvisioner) Prepare(config interface{}, ui Ui) {
|
2013-05-22 18:39:30 -04:00
|
|
|
t.prepCalled = true
|
2013-05-22 19:29:07 -04:00
|
|
|
t.prepConfig = config
|
|
|
|
t.prepUi = ui
|
2013-05-22 18:39:30 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (t *TestProvisioner) Provision(Ui, Communicator) {
|
|
|
|
t.provCalled = true
|
|
|
|
}
|