Method
__init__
(self, script, shell, process_invoker: ProcessInvoker)
Source from the content-addressed store, hash-verified
| 43 | class ScriptValuesProvider(ValuesProvider): |
| 44 | |
| 45 | def __init__(self, script, shell, process_invoker: ProcessInvoker) -> None: |
| 46 | script_output = process_invoker.invoke(script, shell=shell) |
| 47 | script_output = script_output.rstrip('\n') |
| 48 | self._values = [line for line in script_output.split('\n') if not is_empty(line)] |
| 49 | |
| 50 | def get_values(self, parameter_values): |
| 51 | return self._values |
Callers
nothing calls this directly
Tested by
no test coverage detected