Skip to content

Commit

Permalink
BDOG-208 add additional envs to dropdown (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetimo authored May 14, 2019
1 parent 7a21d16 commit 5f7a011
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ import scala.util.control.NonFatal

sealed trait SlugInfoFlag { def s: String }
object SlugInfoFlag {
case object Latest extends SlugInfoFlag { val s = "latest" }
case object Production extends SlugInfoFlag { val s = "production" }
case object QA extends SlugInfoFlag { val s = "qa" }

val values = List(Latest, Production, QA)
case object Latest extends SlugInfoFlag { val s = "latest" }
case object Production extends SlugInfoFlag { val s = "production" }
case object QA extends SlugInfoFlag { val s = "qa" }
case object Staging extends SlugInfoFlag { val s = "staging" }
case object Dev extends SlugInfoFlag { val s = "development" }
case object ExternalTest extends SlugInfoFlag { val s = "external test" }

val values = List(Latest, Production, QA, Staging, Dev, ExternalTest)

def parse(s: String): Option[SlugInfoFlag] =
values.find(_.s == s)
Expand Down

0 comments on commit 5f7a011

Please sign in to comment.