
org.http4k.cloudnative.env.extensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-cloudnative Show documentation
Show all versions of http4k-cloudnative Show documentation
Machinery for running Http4k apps in cloud-native environments
package org.http4k.cloudnative.env
import org.http4k.format.JacksonYaml
import java.io.File
import java.io.FileNotFoundException
import java.io.InputStreamReader
import java.util.Properties
/**
* Read a YAML file into environments, prepending all of the nested levels into the property names
*/
fun Environment.Companion.fromYaml(file: File): Environment {
val map = JacksonYaml.asA
© 2015 - 2025 Weber Informatics LLC | Privacy Policy