packer-cn/packer/provisioner_test.go

19 lines
326 B
Go
Raw Normal View History

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