Last active
October 6, 2016 23:35
-
-
Save cvogt/628727e93363434e1a445c5f8b9dd51c to your computer and use it in GitHub Desktop.
serializing scala configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object ProductionConfig{ | |
def main(args: Array[String]): Unit = { | |
val config = Config("db.production-server.com",12345) | |
if(args(0) == "serialize") | |
println( toJson( config ) ) | |
else | |
Application.run( config ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment