public Manager(Dictionary <string, Step> steps, Dictionary <string, Action> actions, string logPath) { _steps = steps; _actions = actions; _output = new OutputLogger(logPath); _managerOutput = new OutputLogger(_output, "Manager"); }
public ActionRunner(Action action, OutputLogger outStream) { _action = action; _outStream = outStream; CreateTask(); CreateProcess(); }
public StepRunner(string stepName, Step step, Dictionary <string, Action> actions, OutputLogger managerOutput, OutputLogger output) { _stepName = stepName; _step = step; _actions = actions; _managerOutput = managerOutput; _output = output; }
private void SetupActionOutput(string actionName) { var stepActionName = GetStepActionString(actionName); _currentActionOutput = _step.LogPath == "-" ? new OutputLogger(_output, stepActionName) : new OutputLogger(_step.LogPath, stepActionName); }
private void CleanupActionOutput() { if (_step.LogPath != "-") { _currentActionOutput.Close(); } _currentActionOutput = null; }