Groovy Documentation

org.hidetake.gradle.ssh.api.session.handler
[Groovy] Interface SudoExecution


interface SudoExecution

Handler for sudo execution.

Authors:
hidetake.org


Method Summary
java.lang.String executeSudo(java.lang.String command)

Performs a sudo operation, explicitly providing password for the sudo user.

java.lang.String executeSudo(java.util.HashMap settings, java.lang.String command)

Performs a sudo operation, explicitly providing password for the sudo user.

void executeSudo(java.lang.String command, groovy.lang.Closure callback)

Performs a sudo operation, explicitly providing password for the sudo user.

void executeSudo(java.util.HashMap settings, java.lang.String command, groovy.lang.Closure callback)

Performs a sudo operation, explicitly providing password for the sudo user.

 

Method Detail

executeSudo

java.lang.String executeSudo(java.lang.String command)
Performs a sudo operation, explicitly providing password for the sudo user. This method blocks until channel is closed.
Parameters:
command
Returns:
output value of the command


executeSudo

java.lang.String executeSudo(java.util.HashMap settings, java.lang.String command)
Performs a sudo operation, explicitly providing password for the sudo user. This method blocks until channel is closed.
Parameters:
settings - execution settings
command
Returns:
output value of the command


executeSudo

void executeSudo(java.lang.String command, groovy.lang.Closure callback)
Performs a sudo operation, explicitly providing password for the sudo user. This method blocks until channel is closed.
Parameters:
command
callback - closure called with an output value of the command


executeSudo

void executeSudo(java.util.HashMap settings, java.lang.String command, groovy.lang.Closure callback)
Performs a sudo operation, explicitly providing password for the sudo user. This method blocks until channel is closed.
Parameters:
settings - execution settings
command
callback - closure called with an output value of the command


 

Groovy Documentation