yoda/workspace.py
def add(self, name, path):
        """Add a workspace entry in user config file."""
        if not (os.path.exists(path)):
            raise ValueError("Workspace path `%s` doesn't exists." % path)

        if (self.exists(name)):
            raise ValueError("Workspace `%s` already exists." % name)

        self.config["workspaces"][name] = {"path": path, "repositories": {}}
        self.config.write()
def add(self, name, path):
        """Add a workspace entry in user config file."""
        if not (os.path.exists(path)):
            raise ValueError("Workspace path `%s` doesn't exists." % path)

        if (self.exists(name)):
            raise ValueError("Workspace `%s` already exists." % name)

        self.config["workspaces"][name] = {"path": path, "repositories": {}}
        self.config.write()
def add ( self , name , path ) : if not ( os . path . exists ( path ) ) : raise ValueError ( "Workspace path `%s` doesn't exists." % path ) if ( self . exists ( name ) ) : raise ValueError ( "Workspace `%s` already exists." % name ) self . config [ "workspaces" ] [ name ] = { "path" : path , "repositories" : { } } self . config . write ( )
Add a workspace entry in user config file.
Add a workspace entry in user config file .