diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-04-09 16:40:32 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-04-09 16:40:32 -0700 |
commit | 7f2467a3464c83e5458bc8d25159b8e091af52e9 (patch) | |
tree | 241ddc7978e50bcdc0c221999e20b0ec444b2377 /crashboxd/src/main/scala/io/crashbox/ci/Executor.scala | |
parent | b492dcf46718f50ca051017bddd4551faa867339 (diff) | |
download | crashbox-ci-7f2467a3464c83e5458bc8d25159b8e091af52e9.tar.gz crashbox-ci-7f2467a3464c83e5458bc8d25159b8e091af52e9.tar.bz2 crashbox-ci-7f2467a3464c83e5458bc8d25159b8e091af52e9.zip |
Make executors generic
Diffstat (limited to 'crashboxd/src/main/scala/io/crashbox/ci/Executor.scala')
-rw-r--r-- | crashboxd/src/main/scala/io/crashbox/ci/Executor.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crashboxd/src/main/scala/io/crashbox/ci/Executor.scala b/crashboxd/src/main/scala/io/crashbox/ci/Executor.scala new file mode 100644 index 0000000..06befee --- /dev/null +++ b/crashboxd/src/main/scala/io/crashbox/ci/Executor.scala @@ -0,0 +1,20 @@ +package io.crashbox.ci + +import java.io.{ File, OutputStream } +import scala.concurrent.Future + + +trait Executor[E <: Environment] { + + def start( + environment: E, + script: String, + buildDirectory: File, + out: OutputStream + ): Future[ExecutionId] + + def result(id: ExecutionId): Future[Int] + + def stop(id: ExecutionId): Unit + +} |