All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hidetake.groovy.ssh.operation.Operation.groovy Maven / Gradle / Ivy

There is a newer version: 2.11.2
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy