diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-04-09 16:48:21 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-04-09 16:48:21 -0700 |
commit | 82cfb0ef1ab41ecc09ed0ccaf56704e14b654177 (patch) | |
tree | ae24ad2c7c42f9303c9c1800ec66fe68715f9921 /crashboxd/src/main/scala/io/crashbox/ci/Parser.scala | |
parent | 7f2467a3464c83e5458bc8d25159b8e091af52e9 (diff) | |
download | crashbox-ci-82cfb0ef1ab41ecc09ed0ccaf56704e14b654177.tar.gz crashbox-ci-82cfb0ef1ab41ecc09ed0ccaf56704e14b654177.tar.bz2 crashbox-ci-82cfb0ef1ab41ecc09ed0ccaf56704e14b654177.zip |
Make builder generic
Diffstat (limited to 'crashboxd/src/main/scala/io/crashbox/ci/Parser.scala')
-rw-r--r-- | crashboxd/src/main/scala/io/crashbox/ci/Parser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crashboxd/src/main/scala/io/crashbox/ci/Parser.scala b/crashboxd/src/main/scala/io/crashbox/ci/Parser.scala index 5a58612..b8ad89b 100644 --- a/crashboxd/src/main/scala/io/crashbox/ci/Parser.scala +++ b/crashboxd/src/main/scala/io/crashbox/ci/Parser.scala @@ -8,7 +8,7 @@ object Parser { case class Success(buildDef: BuildDef) extends Result case class Failure(error: String) extends Result - implicit object TaskDefReader extends YamlReader[TaskDef] { + implicit object TaskDefReader extends YamlReader[TaskDef[_]] { def read(value: YamlValue) = { val items = value.convertTo[Map[String, YamlValue]] val image = items @@ -29,7 +29,7 @@ object Parser { val tasks = items .getOrElse("tasks", throw new YamlFormatException("no tasks specified")) - .convertTo[Map[String, TaskDef]] + .convertTo[Map[String, TaskDef[_]]] BuildDef(tasks.values.toSeq) } } |