Exemplo n.º 1
0
 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");
 }
Exemplo n.º 2
0
 public ActionRunner(Action action, OutputLogger outStream)
 {
     _action    = action;
     _outStream = outStream;
     CreateTask();
     CreateProcess();
 }
Exemplo n.º 3
0
 public StepRunner(string stepName, Step step, Dictionary <string, Action> actions, OutputLogger managerOutput, OutputLogger output)
 {
     _stepName      = stepName;
     _step          = step;
     _actions       = actions;
     _managerOutput = managerOutput;
     _output        = output;
 }
Exemplo n.º 4
0
        private void SetupActionOutput(string actionName)
        {
            var stepActionName = GetStepActionString(actionName);

            _currentActionOutput = _step.LogPath == "-"
                ? new OutputLogger(_output, stepActionName)
                : new OutputLogger(_step.LogPath, stepActionName);
        }
Exemplo n.º 5
0
        private void CleanupActionOutput()
        {
            if (_step.LogPath != "-")
            {
                _currentActionOutput.Close();
            }

            _currentActionOutput = null;
        }