public static ActionResult InstallRavenDb(Session session) { session.Log("Installing RavenDB if necessary."); try { CaptureOut(() => { var ravenDbSetup = new RavenDBSetup(); if (ravenDbSetup.Install(WindowsIdentity.GetCurrent(), allowInstall: true)) { session.Log("RavenDB installed and configured."); } else { session.Log("RavenDB could not be installed."); } }, session); return(ActionResult.Success); } catch (Exception) { return(ActionResult.Failure); } }
protected override void ProcessRecord() { if (ShouldProcess(Environment.MachineName)) { RavenDBSetup.Install(Port, Path); } }
public void EnsureGetRavenResourcesIsNotEmpty() { var combine = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); try { Directory.CreateDirectory(combine); RavenDBSetup.ExportRavenResources(combine); Assert.IsNotEmpty(Directory.GetFiles(combine)); } finally { Directory.Delete(combine, true); } }
public static ActionResult InstallRavenDb(Session session) { session.Log("Installing RavenDB if necessary."); try { CaptureOut(() => { RavenDBSetup.Install(); session.Log("RavenDB installed and configured."); }, session); return(ActionResult.Success); } catch (Exception) { return(ActionResult.Failure); } }
public void Install() { RavenDBSetup.Install(); }
public static ActionResult InstallRavenDb(Session session) { session.Log("Installing RavenDB if necessary."); try { CaptureOut(() => { var ravenDbSetup = new RavenDBSetup(); if (ravenDbSetup.Install(WindowsIdentity.GetCurrent(), allowInstall: true)) { session.Log("RavenDB installed and configured."); } else { session.Log("RavenDB could not be installed."); } }, session); return ActionResult.Success; } catch (Exception) { return ActionResult.Failure; } }
protected override void ProcessRecord() { var isGood = RavenDBSetup.Check(Port); WriteObject(isGood); }