|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.hidetake.gradle.ssh.api.SshSpec
@Slf4j class SshSpec
Specification of a SSH task.
| Property Summary | |
|---|---|
static java.lang.Object |
allowAnyHosts
|
java.lang.Object |
config
JSch configuration. |
java.lang.Boolean |
dryRun
Dry-run flag. |
java.lang.String |
encoding
Encoding of input and output stream. |
LogLevel |
errorLogLevel
Log level for standard error of commands. |
java.io.File |
identity
Identity key file for public-key authentication. |
java.io.File |
knownHosts
Known hosts file. |
LogLevel |
outputLogLevel
Log level for standard output of commands. |
java.lang.String |
passphrase
Pass-phrase for the identity key. |
java.lang.Integer |
retryCount
Retry count for connecting to a host. |
java.lang.Integer |
retryWaitSec
Interval time in seconds between retries. |
java.lang.Object |
sessionSpecs
Sessions. |
| Method Summary | |
|---|---|
static SshSpec
|
computeMerged(SshSpec... specs)
Computes merged settings. |
void
|
config(java.util.Map pairs)
Adds configuration. |
void
|
session(Remote remote, groovy.lang.Closure operationClosure)
Adds a session. |
void
|
session(java.util.Collection remotes, groovy.lang.Closure operationClosure)
Adds sessions. |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Property Detail |
|---|
static final java.lang.Object allowAnyHosts
final java.lang.Object config
java.lang.Boolean dryRun
true, performs no action.
java.lang.String encoding
LogLevel errorLogLevel
java.io.File identity
java.io.File knownHosts
LogLevel outputLogLevel
java.lang.String passphrase
java.lang.Integer retryCount
java.lang.Integer retryWaitSec
final java.lang.Object sessionSpecs
| Method Detail |
|---|
static SshSpec computeMerged(SshSpec... specs)
specs - list of SshSpecs in priority order (first item is highest priority)
void config(java.util.Map pairs)
config(StrictHostKeyChecking: 'no')
pairs - key value pairs of configuration
void session(Remote remote, groovy.lang.Closure operationClosure)
remote - the remoteoperationClosure - closure for OperationHandler (run in execution phase)
void session(java.util.Collection remotes, groovy.lang.Closure operationClosure)
remotes - collection of RemotesoperationClosure - closure for OperationHandler (run in execution phase)
Groovy Documentation