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

org.hidetake.gradle.ssh.api.command.Interaction.groovy Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package org.hidetake.gradle.ssh.api.command
/**
 * Represents stream interaction with the server.
 *
 * @author hidetake.org
 */
interface Interaction {
    /**
     * Wildcard for condition expression.
     */
    static final _ = Wildcard.instance

    static final standardOutput = Stream.StandardOutput

    static final standardError = Stream.StandardError

    /**
     * Get the standard input for the remote command.
     *
     * @return output stream
     */
    OutputStream getStandardInput()

    /**
     * Declare an interaction rule.
     *
     * @param condition map of condition
     * @param action the action performed if condition satisfied
     */
    void when(Map condition, Closure action)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy