func (p ConcreteJobScriptProvider) NewDrainScript(jobName string, params boshdrain.ScriptParams) CancellableScript { path := path.Join(p.dirProvider.JobsDir(), jobName, "bin", "drain"+p.scriptCommandFactory.Extension()) return boshdrain.NewConcreteScript(p.fs, p.cmdRunner, p.scriptCommandFactory, jobName, path, params, p.timeService, p.logger) }
func (p ConcreteJobScriptProvider) NewDrainScript(jobName string, params boshdrain.ScriptParams) Script { path := filepath.Join(p.dirProvider.JobsDir(), jobName, "bin", "drain") return boshdrain.NewConcreteScript(p.fs, p.cmdRunner, jobName, path, params, p.timeService) }