.bamboo.specs.extension.bamboo-specs-extension.1.2.6.source-code.SpecsDsl.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bamboo-specs-extension Show documentation
Show all versions of bamboo-specs-extension Show documentation
A Kotlin DSL for Bamboo Specs
package com.atlassian.bamboo.specs.extension
import com.atlassian.bamboo.specs.util.BambooServer
import com.atlassian.bamboo.specs.util.BambooSpecSerializer
import java.io.Writer
typealias SpecsDsl = (@SpecsMarker T).() -> Unit
fun BambooServer.publish(specs: Specs) = specs.publish(this)
fun BambooSpecSerializer.dump(specs: Specs, writer: Writer) = specs.printYaml(writer)
fun BambooSpecSerializer.dump(specs: Specs) = specs.toYaml()