public void WriteLogsToFile(InstallInput input, IEnumerable<LogEntry> entries) { var document = EntryLogWriter.Write(entries, input.Title() + " at " + DateTime.UtcNow.ToLongDateString()); document.WriteToFile(input.LogFileFlag); ConsoleWriter.Write("Output writing to {0}", input.LogFileFlag.ToFullPath()); if (input.OpenFlag) { document.OpenInBrowser(); } }
public void WriteLogsToFile(InstallInput input, IEnumerable <LogEntry> entries) { var document = EntryLogWriter.Write(entries, input.Title() + " at " + DateTime.UtcNow.ToLongDateString()); document.WriteToFile(input.LogFileFlag); Console.WriteLine("Output writing to {0}", input.LogFileFlag.ToFullPath()); if (input.OpenFlag) { document.OpenInBrowser(); } }
private IEnumerable<LogEntry> execute(InstallInput input) { ConsoleWriter.Write(input.Title()); switch (input.ModeFlag) { case InstallMode.install: return _gateway.Install(); case InstallMode.check: return _gateway.CheckEnvironment(); case InstallMode.all: return _gateway.InstallAndCheckEnvironment(); } return new LogEntry[0]; }
private IEnumerable <LogEntry> execute(InstallInput input) { Console.WriteLine(input.Title()); switch (input.ModeFlag) { case InstallMode.install: return(_gateway.Install()); case InstallMode.check: return(_gateway.CheckEnvironment()); case InstallMode.all: return(_gateway.InstallAndCheckEnvironment()); } return(new LogEntry[0]); }