@Test public void restart() { terminal.expectCommand("systemctl restart docker 2>&1", 0, ""); assertTrue(new SystemCtl(terminal).restart("docker").converge(taskContext)); }
public SystemCtlRestart restart(String unit) { return new SystemCtlRestart(unit); }
SystemCtl { public SystemCtlRestart restart(String unit) { return new SystemCtlRestart(unit); } }
SystemCtl { public SystemCtlRestart restart(String unit) { return new SystemCtlRestart(unit); } SystemCtl(Terminal terminal); }
SystemCtl { public SystemCtlRestart restart(String unit) { return new SystemCtlRestart(unit); } SystemCtl(Terminal terminal); SystemCtl withSudo(); boolean useSudo(); void daemonReload(TaskContext taskContext); SystemCtlEnable enable(String unit); SystemCtlDisable disable(String unit); SystemCtlStart start(String unit); SystemCtlStop stop(String unit); SystemCtlRestart restart(String unit); boolean serviceExists(TaskContext context, String unit); boolean isActive(TaskContext context, String unit); }
SystemCtl { public SystemCtlRestart restart(String unit) { return new SystemCtlRestart(unit); } SystemCtl(Terminal terminal); SystemCtl withSudo(); boolean useSudo(); void daemonReload(TaskContext taskContext); SystemCtlEnable enable(String unit); SystemCtlDisable disable(String unit); SystemCtlStart start(String unit); SystemCtlStop stop(String unit); SystemCtlRestart restart(String unit); boolean serviceExists(TaskContext context, String unit); boolean isActive(TaskContext context, String unit);  }