mirror of https://github.com/hashicorp/packer
parent
1015df8fa8
commit
04a8bfb455
@ -1,11 +1,20 @@
|
||||
package packer
|
||||
|
||||
type TestPostProcessor struct{}
|
||||
type TestPostProcessor struct {
|
||||
configCalled bool
|
||||
configVal interface{}
|
||||
ppCalled bool
|
||||
ppArtifact Artifact
|
||||
}
|
||||
|
||||
func (*TestPostProcessor) Configure(interface{}) error {
|
||||
func (pp *TestPostProcessor) Configure(v interface{}) error {
|
||||
pp.configCalled = true
|
||||
pp.configVal = v
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*TestPostProcessor) PostProcess(Artifact) (Artifact, error) {
|
||||
func (pp *TestPostProcessor) PostProcess(a Artifact) (Artifact, error) {
|
||||
pp.ppCalled = true
|
||||
pp.ppArtifact = a
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue