org.hidetake.groovy.ssh.operation.Operation.groovy Maven / Gradle / Ivy
package org.hidetake.groovy.ssh.operation
import org.hidetake.groovy.ssh.interaction.InteractionHandler
/**
* An operation such as a command or shell execution.
*
* @author Hidetake Iwata
*/
interface Operation {
/**
* Execute the operation.
*
* @return exit status
*/
int execute()
/**
* Adds an interaction.
*
* @param closure definition of interaction
*/
void addInteraction(@DelegatesTo(InteractionHandler) Closure closure)
}