Beispiel #1
0
 def disable(cls, path):
     """
     Remove a andsploit Module Repository from the collection, but leave the file
     system intact.
     """
     
     if cls.is_repo(path):
         Configuration.delete('repositories', path)
     else:
         raise UnknownRepository(path)
Beispiel #2
0
 def delete(cls, url):
     """
     Removes a andsploit remote, with the specified URL.
     """
     
     if cls.get(url) != None:
         Configuration.delete('remotes', url)
         
         return True
     else:
         raise UnknownRemote(url)