Rename ProjectService to RepositoryService.

This commit is contained in:
takezoe
2013-06-04 01:14:27 +09:00
parent f9c085ced6
commit 78ad794613
7 changed files with 21 additions and 18 deletions

View File

@@ -9,12 +9,12 @@ import org.apache.commons.io._
import jp.sf.amateras.scalatra.forms._
class CreateRepositoryController extends CreateRepositoryControllerBase
with ProjectService with AccountService with WikiService
with RepositoryService with AccountService with WikiService
/**
* Creates new repository.
*/
trait CreateRepositoryControllerBase extends ControllerBase { self: ProjectService with WikiService =>
trait CreateRepositoryControllerBase extends ControllerBase { self: RepositoryService with WikiService =>
case class RepositoryCreationForm(name: String, description: String) // TODO Option
@@ -37,7 +37,7 @@ trait CreateRepositoryControllerBase extends ControllerBase { self: ProjectServi
val loginUserName = context.loginAccount.get.userName
// Insert to the database at first
createProject(form.name, loginUserName, Some(form.description))
createRepository(form.name, loginUserName, Some(form.description))
// Create the actual repository
val gitdir = getRepositoryDir(loginUserName, form.name)