Exemple #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");
 }
Exemple #2
0
 public ActionRunner(Action action, OutputLogger outStream)
 {
     _action    = action;
     _outStream = outStream;
     CreateTask();
     CreateProcess();
 }
Exemple #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;
 }
Exemple #4
0
        private void SetupActionOutput(string actionName)
        {
            var stepActionName = GetStepActionString(actionName);

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

            _currentActionOutput = null;
        }