Packages

package script

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. case class CmdScript(name: String = "cmd", description: Option[String] = None, winCmd: Option[String] = None, linuxCmd: Option[String] = None) extends CmdScriptBase with Product with Serializable

    Execute a command on the command line and get its std output Command can be different for windows and linux operating systems, but it must be defined for at least one of them.

    Execute a command on the command line and get its std output Command can be different for windows and linux operating systems, but it must be defined for at least one of them.

    If return value is not zero an exception is thrown.

    Note about internal implementation: on execution value of parameter map entries where key starts with - 'param' will be added as parameter after the docker run command, sorted by key. This allows to customize execution behaviour through Actions or DataObjects using CmdScript.

    name

    name of the transformer

    description

    Optional description of the transformer

    winCmd

    Cmd to execute on windows operating systems - note that it is executed with "cmd /C" prefixed

    linuxCmd

    Cmd to execute on linux operating systems - note that it is executed with "sh -c" prefixed.

    Annotations
    @Scaladoc()
  2. trait CmdScriptBase extends ParsableScriptDef with SmartDataLakeLogger

    Generic implementation of calling ProcessBuilder for different scripts executing command line On execution value of parameter map entries where key starts with 'param' will be added as parameter to command.

    Generic implementation of calling ProcessBuilder for different scripts executing command line On execution value of parameter map entries where key starts with 'param' will be added as parameter to command. If return value is not zero an exception is thrown.

    Annotations
    @Scaladoc()
  3. case class DockerRunScript(name: String = "docker-run", description: Option[String] = None, image: String, winDockerCmd: String = "docker", linuxDockerCmd: String = "docker", localDataDirToMount: Option[String] = None) extends CmdScriptBase with Product with Serializable

    Run a docker image and get its std output.

    Run a docker image and get its std output.

    If return value is not zero an exception is thrown.

    Note about internal implementation: on execution value of parameter map entries where key starts with - 'runParam' will be added as parameter after the docker run command, sorted by their key. - 'dockerParam' will be added as parameter for the docker command, e.g. before the image name in the docker run command, sorted by their key. This allows to customize execution behaviour through Actions or DataObjects using CmdScript.

    name

    name of the transformer

    description

    Optional description of the transformer

    image

    Docker image to run

    winDockerCmd

    Cmd to execute docker on windows operating systems. Default is 'docker'.

    linuxDockerCmd

    Cmd to execute docker on linux operating systems. Default is 'docker'.

    localDataDirToMount

    Optional directory that will be mounted as /mnt/data in the container. This is needed if your container wants to access files available in your local filesystem.

    Annotations
    @Scaladoc()
  4. trait ParsableScriptDef extends ScriptDef with ParsableFromConfig[ParsableScriptDef]
  5. trait ScriptDef extends AnyRef

    Interface to implement script execution

    Interface to implement script execution

    Annotations
    @Scaladoc()

Value Members

  1. object CmdScript extends FromConfigFactory[ParsableScriptDef] with Serializable
  2. object DockerRunScript extends FromConfigFactory[ParsableScriptDef] with Serializable

Ungrouped