github.com/chenbh/concourse/v6@v6.4.2/atc/resource/resource_get.go (about) 1 package resource 2 3 import ( 4 "context" 5 6 "github.com/chenbh/concourse/v6/atc/runtime" 7 ) 8 9 func (resource *resource) Get( 10 ctx context.Context, 11 spec runtime.ProcessSpec, 12 runnable runtime.Runner, 13 ) (runtime.VersionResult, error) { 14 var vr runtime.VersionResult 15 16 input, err := resource.Signature() 17 if err != nil { 18 return vr, err 19 } 20 21 err = runnable.RunScript( 22 ctx, 23 spec.Path, 24 spec.Args, 25 input, 26 &vr, 27 spec.StderrWriter, 28 true, 29 ) 30 return vr, err 31 }