public async Task <ProfileModel> GetProfile(string path) { _stringValidator.IsNullOrWhitespace(path, nameof(path)); var profile = await _profileReader.Read(path); var environmentVariables = _profileReader.ExtractEnvironmentVariables(profile); var environmentVariablesValues = _environmentVariableReader.Read(environmentVariables); profile = ProcessEnvironmentVariables(profile, environmentVariablesValues); return(profile); }
public void Deploy() { // need to log inside of reader var hosts = _reader.Read(); var runners = _factory.BuildRunners(hosts); runners.Each(x => x.InitializeDeployment()); runners.Each(x => x.Deploy()); runners.Each(x => x.FinalizeDeployment()); // TODO -- write more to the console. // TODO -- WriteToFile(_diagnostics); }