Reuse tansformer codes

This commit is contained in:
Donny Xia
2020-06-18 12:18:37 -07:00
parent 160485ef19
commit 7e2d3ff5ab
6 changed files with 11 additions and 59 deletions

View File

@@ -140,11 +140,6 @@ func (p *ExecPlugin) Transform(rm resmap.ResMap) error {
return p.updateResMapValues(output, rm)
}
func (p *ExecPlugin) Validate(rm resmap.ResMap) error {
// Validate works exactly same with Transformer
return p.Transform(rm)
}
// invokePlugin writes plugin config to a temp file, then
// passes the full temp file path as the first arg to a process
// running the plugin binary. Process output is returned.