Handle same name projects

This commit is contained in:
brunosimon
2016-08-11 21:04:35 +02:00
parent 816c164c8c
commit 2bd36abac6
3 changed files with 56 additions and 13 deletions
+7 -3
View File
@@ -8,14 +8,18 @@ class Project
{
constructor( options )
{
this.name = options.name
this.slug = slug( this.name )
this.set_name( options.name )
this.set_socket( options.socket )
this.files = new Files( { socket: this.socket } )
}
set_name( _name )
{
this.name = _name
this.slug = slug( this.name )
}
set_socket( socket )
{
// Set up