diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-03-18 01:58:01 -0400 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-03-18 01:58:01 -0400 |
commit | dff97b40df39e5eb391e1fc30ca47180384f1747 (patch) | |
tree | 76d1a4d3af4c8a0b8b316a151d40493e8f22957b /crashbox-server/src/main/scala/io/crashbox/ci/Source.scala | |
parent | 3f00b87a022e92e3bf341d40d05d81b5538e4974 (diff) | |
download | crashbox-ci-nocake.tar.gz crashbox-ci-nocake.tar.bz2 crashbox-ci-nocake.zip |
Refactor trait-based dependencies to constructor parametersnocake
Diffstat (limited to 'crashbox-server/src/main/scala/io/crashbox/ci/Source.scala')
-rw-r--r-- | crashbox-server/src/main/scala/io/crashbox/ci/Source.scala | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crashbox-server/src/main/scala/io/crashbox/ci/Source.scala b/crashbox-server/src/main/scala/io/crashbox/ci/Source.scala deleted file mode 100644 index dffb5ea..0000000 --- a/crashbox-server/src/main/scala/io/crashbox/ci/Source.scala +++ /dev/null @@ -1,19 +0,0 @@ -package io.crashbox.ci - -import java.io.File -import java.net.URL - -import scala.concurrent.Future - -import org.eclipse.jgit.api.Git - -trait Source { self: Core => - - def fetchSource(from: URL, to: File): Future[File] = - Future { - log.debug(s"Cloning git repo from $from to $to") - Git.cloneRepository.setURI(from.toURI.toString).setDirectory(to).call() - to - }(blockingDispatcher) - -} |