예제 #1
0
 private BoltStubServer(string script, int port)
 {
     _commandRunner = ShellCommandRunnerFactory.Create();
     //_commandRunner.BeginRunCommand("bolt", "stub", "-l", "127.0.0.1:" + port.ToString(), "-v", script);
     _commandRunner.BeginRunCommand("boltstub", "-v", port.ToString(), "-v", script);
     WaitForServer(port);
 }
            public void ShouldRunCommand()
            {
                // first we got a local command runner
                var runner = ShellCommandRunnerFactory.Create();

                runner.RunCommand("neoctrl-install", "-h");
            }
 private BoltStubServer(string script, int port)
 {
     _commandRunner = ShellCommandRunnerFactory.Create();
     _commandRunner.BeginRunCommand("boltstub", port.ToString(), script);
     _port = port;
     WaitForServer(_port);
 }
예제 #4
0
 private static BoltkitStatus TestBoltkitAvailability()
 {
     try
     {
         var commandRunner = ShellCommandRunnerFactory.Create();
         commandRunner.RunCommand("neoctrl-cluster", "--help");
     }
     catch
     {
         return(BoltkitStatus.Unavailable);
     }
     return(BoltkitStatus.Installed);
 }
예제 #5
0
 public ExternalBoltkitInstaller()
 {
     _commandRunner = ShellCommandRunnerFactory.Create();
 }