public RunDeployment( DeploymentProcessSettings deploymentProcessSettings, DeploymentProcessRunner deploymentProcessRunner, DeploymentProcessDirectoryFactory deploymentProcessDirectoryFactory, IClock clock) { _deploymentProcessSettings = deploymentProcessSettings; _deploymentProcessRunner = deploymentProcessRunner; _deploymentProcessDirectoryFactory = deploymentProcessDirectoryFactory; _clock = clock; }
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 DeploymentProcessRunner(DeploymentProcessSettings deploymentProcessSettings) { _deploymentProcessSettings = deploymentProcessSettings; }