Advertisement
NLinker

Configuration with defaults

Dec 5th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.91 KB | None | 0 0
  1. ...
  2.       new ConfMailer(
  3.         host            = config.flatOpt("dfe.mailer.host").getOrElse("localhost"),
  4.         port            = config.flatOpt("dfe.mailer.port").getOrElse(25),
  5.         ssl             = config.flatOpt("dfe.mailer.ssl").getOrElse(false),
  6.         tls             = config.flatOpt("dfe.mailer.tls").getOrElse(false),
  7.         user            = config.flatOpt("dfe.mailer.auth.user"),
  8.         password        = config.flatOpt("dfe.mailer.auth.password"),
  9.         mock            = config.flatOpt("dfe.mailer.mock").getOrElse(false),
  10.         from            = config.flatOpt("dfe.mailer.from").getOrElse(""),
  11.         to              = config.flatOpt("dfe.mailer.to").getOrElse("").split(","),
  12.         metricsAnnounce = config.flatOpt("dfe.mailer.metrics-announce").getOrElse("").split(",")m
  13.         tapsAnnounce    = config.flatOpt("dfe.mailer.taps-announce").getOrElse("").split(",")
  14.       ),
  15. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement