Uses of Class
com.shaft.cli.TerminalActions
Packages that use TerminalActions
-
Uses of TerminalActions in com.shaft.cli
Methods in com.shaft.cli that return TerminalActionsModifier and TypeMethodDescriptionTerminalActions.executeTerminalCommand(String command) Executes a terminal command and returns this terminal actions instance for fluent chaining.static TerminalActionsTerminalActions.getInstance()static TerminalActionsTerminalActions.getInstance(boolean asynchronous) static TerminalActionsTerminalActions.getInstance(boolean asynchronous, boolean verbose) static TerminalActionsTerminalActions.getInstance(boolean asynchronous, boolean verbose, boolean isInternal) static TerminalActionsTerminalActions.getRemoteInstance(String sshHostName, int sshPortNumber, String sshUsername, String sshKeyFileFolderName, String sshKeyFileName) Creates a remote terminal actions instance that reuses the same SSH session for multiple command executions untilTerminalActions.quit()is called.Methods in com.shaft.cli with parameters of type TerminalActionsModifier and TypeMethodDescriptionFileActions.copyFile(TerminalActions terminalSession, String sourceDirectory, String destinationDirectory, String fileName) Copies files from sourceDirectory to destinationDirectory using the provided terminalSession.FileActions.copyFileToLocalMachine(TerminalActions terminalSession, String targetFileFolderPath, String targetFileName, String... pathToTempDirectoryOnRemoteMachine) This method is used to copy a certain file from a remote machine (dockerized or not) to the current execution machine.FileActions.getFileChecksum(TerminalActions terminalSession, String targetFileFolderPath, String targetFileName, String... pathToTempDirectoryOnRemoteMachine) This method is used to compute the SHA256 checksum for any file.FileActions.listFilesInDirectory(TerminalActions terminalSession, String targetDirectory) Lists all files inside the targetDirectory -
Uses of TerminalActions in com.shaft.driver
Methods in com.shaft.driver that return TerminalActionsModifier and TypeMethodDescriptionstatic TerminalActionsDriverFactory.getTerminalDriver()Creates a new local Terminal instance to facilitate using the Terminal Actions Librarystatic TerminalActionsSHAFT.CLI.remoteTerminal(String sshHostName, int sshPortNumber, String sshUsername, String sshKeyFileFolderName, String sshKeyFileName) Creates a new remote terminal actions instance that reuses one SSH session across multiple command executions untilTerminalActions.quit()is called.static TerminalActionsSHAFT.CLI.terminal()Creates a new terminal actions instance for executing shell commands.