Private
Public Access
fix: el docker no creaba imagenes nuevas
This commit is contained in:
1 parent
e9cfb1adba
commit
de33352618
3 files changed
+20
-10
No files matched your search
@@ -5,14 +5,15 @@ import scala.io.Source
|
||||
|
||||
object EnvFile {
|
||||
|
||||
def load(path: String): Map[String, String] = {
|
||||
val file = new File(path)
|
||||
if (!file.exists()) Map.empty
|
||||
else {
|
||||
val lines = Source.fromFile(file).getLines().toList
|
||||
lines.flatMap(parseLine).toMap
|
||||
}
|
||||
def load(path: String): Map[String, String] = {
|
||||
val file = new File(path)
|
||||
if (!file.exists()) {
|
||||
sys.env
|
||||
} else {
|
||||
val lines = Source.fromFile(file).getLines().toList
|
||||
lines.flatMap(parseLine).toMap
|
||||
}
|
||||
}
|
||||
|
||||
private def parseLine(line: String): Option[(String, String)] = {
|
||||
val trimmed = line.trim
|
||||
|
||||
Reference in new issue
Block a user