All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bkbn.skelegro.docker.commands.Run.kt Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package io.bkbn.skelegro.docker.commands

import io.bkbn.skelegro.docker.Dockerfile

typealias RunCommands = List

class Run(
    var commands: RunCommands = emptyList(),
    var separator: String = " ",
    comment: String? = null
) : Command(comment) {
  override fun tag() = "RUN"
  override fun toString() = "${tag()} ${commands.joinToString(separator = separator)}"
}

fun Dockerfile.RUN(init: Run.() -> Unit): Run {
  val run = Run().apply(init)
  steps.add(run)
  return run
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy