invoke

operator fun invoke(scriptPath: String, name: String? = null, step: RunScript.() -> Unit = {}): RunScript

Creates and configures a RunScript instance with Kotlin DSL syntax.

Return

Configured RunScript instance

Parameters

scriptPath

Path to the script resource in the classpath

name

Optional name for the step (for logging and identification)

step

Configuration lambda to customize the step