Implemented: Downloading tagged contents as zip file.

This commit is contained in:
takezoe
2013-05-05 04:34:39 +09:00
parent afef6f13c6
commit 1e7f7404dc
5 changed files with 82 additions and 6 deletions

View File

@@ -33,6 +33,12 @@ object Directory {
def getRepositoryDir(owner: String, repository: String): File =
new File("%s/%s/%s.git".format(RepositoryHome, owner, repository))
/**
* Temporary directory which is used to create an archive to download repository contents.
*/
def getDownloadWorkDir(owner: String, repository: String, sessionId: String): File =
new File("%s/tmp/%s/%s/download/%s".format(GitBucketHome, owner, repository, sessionId))
/**
* Temporary directory which is used in the repository creation.
* GiyBucket generates initial repository contents in this directory and push them.