Handle same name projects
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user