private static CommandsOutput RunCommand(string[] commands, VariableForEnvironment[] variables)
        {
            var config = TestConfigurationFactory.Build();

            var processSettings = new DeploymentProcessSettings(config);

            var commandRunner = new BashCommandsRunner(
                workingDir: TestContext.CurrentContext.TestDirectory,
                bashPath: processSettings.Shell.Bash.ToString()
                );

            var processOutput = commandRunner.Run(commands, variables);

            PrintResults(processOutput);

            return(processOutput);
        }
        public ProcessOutput Run(string workingDir, DeploymentProcessFile deploymentProcessFile,
                                 VariableForEnvironment[] variablesForEnvironment)
        {
            var _commandsRunner = new BashCommandsRunner(
                workingDir,
                _deploymentProcessSettings.Shell.Bash.ToString()
                );

            var commandsOutput = _commandsRunner.Run(deploymentProcessFile.Commands, variablesForEnvironment);

            return(new ProcessOutput
            {
                Steps = new []
                {
                    new ProcessStepResult
                    {
                        Command = "all commands",
                        Output = commandsOutput.Output.ToArray(),
                        Successful = commandsOutput.Successful
                    }
                }
            });
        }