示例#1
0
    def disable(cls, path):
        """
        Remove a drozer Module Repository from the collection, but leave the file
        system intact.
        """

        if cls.is_repo(path):
            Configuration.delete('repositories', path)
        else:
            raise UnknownRepository(path)
示例#2
0
 def disable(cls, path):
     """
     Remove a drozer Module Repository from the collection, but leave the file
     system intact.
     """
     
     if cls.is_repo(path):
         Configuration.delete('repositories', path)
     else:
         raise UnknownRepository(path)
示例#3
0
文件: remotes.py 项目: 0xr0ot/drozer
 def delete(cls, url):
     """
     Removes a drozer remote, with the specified URL.
     """
     
     if cls.get(url) != None:
         Configuration.delete('remotes', url)
         
         return True
     else:
         raise UnknownRemote(url)
示例#4
0
    def delete(cls, url):
        """
        Removes a drozer remote, with the specified URL.
        """

        if cls.get(url) != None:
            Configuration.delete('remotes', url)

            return True
        else:
            raise UnknownRemote(url)