// Script generates the script for the runner
Script generates the script for the runner
// Script generates the script for the runner
func (s RunnerService) Script(ctx context.Context, r api.RunnerGetRequest) (*api.RunnerScriptResponse, error) {
	var runner = api.Runner{Name: r.Name}
	if err := getPreloadedRunner(s.DB, &runner); err != nil {
		return nil, err
	}
	script, err := ruby.Generate(s.serviceURL, "", runner)
	if err != nil {
		return nil, err
	}
	return &api.RunnerScriptResponse{Script: script}, nil
}
func ( s RunnerService ) Script ( ctx context . Context , r api . RunnerGetRequest ) ( * api . RunnerScriptResponse , error ) { var runner = api . Runner { Name : r . Name } if err := getPreloadedRunner ( s . DB , & runner ) ; err != nil { return nil , err } script , err := ruby . Generate ( s . serviceURL , " " , runner ) if err != nil { return nil , err } return & api . RunnerScriptResponse { Script : script } , nil }
Script generates the script for the runner
Script generates the script for the runner