-
public final class DockerExecSpec extends DockerInvokeSpec
DSL for running command 'docker exec' (container).
-
-
Field Summary
Fields Modifier and Type Field Description private final Property<String>idprivate final ListProperty<String>optionsprivate final ListProperty<String>argsprivate final Provider<String>commandprivate final Property<String>operationprivate final Property<Boolean>indicatorprivate final DirectoryPropertycommandDirprivate final ListProperty<String>commandLineprivate ListProperty<Int>exitCodesprivate Property<InputStream>inputprivate final Property<OutputStream>outputprivate final Property<OutputStream>errors
-
Constructor Summary
Constructors Constructor Description DockerExecSpec(Docker docker)
-
Method Summary
Modifier and Type Method Description final Unituser(String id)final Unitprivileged()final Property<String>getId()final ListProperty<String>getOptions()final ListProperty<String>getArgs()final Provider<String>getCommand()final Property<String>getOperation()final Property<Boolean>getIndicator()final DirectoryPropertygetCommandDir()final ListProperty<String>getCommandLine()final ListProperty<Int>getExitCodes()final Property<InputStream>getInput()final Property<OutputStream>getOutput()final Property<OutputStream>getErrors()final UnitsetExitCodes(ListProperty<Int> exitCodes)final UnitsetInput(Property<InputStream> input)-
Methods inherited from class com.cognifide.gradle.environment.docker.DockerExecSpec
args, args, argsShell, env, env, envFile, envFile, options, options, workDir -
Methods inherited from class com.cognifide.gradle.environment.docker.DockerInvokeSpec
exitCode, ignoreExitCodes, nullOut, systemOut -
Methods inherited from class com.cognifide.gradle.environment.docker.DockerSpec
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DockerExecSpec
DockerExecSpec(Docker docker)
-
-
Method Detail
-
privileged
final Unit privileged()
-
getOptions
final ListProperty<String> getOptions()
-
getArgs
final ListProperty<String> getArgs()
-
getCommand
final Provider<String> getCommand()
-
getOperation
final Property<String> getOperation()
-
getIndicator
final Property<Boolean> getIndicator()
-
getCommandDir
final DirectoryProperty getCommandDir()
-
getCommandLine
final ListProperty<String> getCommandLine()
-
getExitCodes
final ListProperty<Int> getExitCodes()
-
getInput
final Property<InputStream> getInput()
-
getOutput
final Property<OutputStream> getOutput()
-
getErrors
final Property<OutputStream> getErrors()
-
setExitCodes
final Unit setExitCodes(ListProperty<Int> exitCodes)
-
setInput
final Unit setInput(Property<InputStream> input)
-
-
-
-