def sync(self, dbs, atomic=True, **kwargs): for path in self.docpaths: ret = pushdocs(path, dbs, atomic=atomic) docs.extend(ret['docs']) for path in self.designpaths: pushapps(path, dbs, atomic=atomic)
def main(): for serverName in ['couchwrite']: for (root, dirs, files) in os.walk(serverName): for dir in dirs: if root.split('/')[-1] == serverName and dir[0] != '.': print 'Pushing ' + os.path.join(root, dir) db = server.get_db(dir) pushapps(os.path.join(root, dir), db)
def main(): for serverName in ['couchwrite']: for (root,dirs,files) in os.walk(serverName): for dir in dirs: if root.split('/')[-1]==serverName and dir[0]!='.': print 'Pushing '+os.path.join(root,dir) db=server.get_db(dir) pushapps(os.path.join(root,dir),db)
def get_docs(self): docs = [] for path in self.docpaths: ret = pushdocs(path, [], export=True) docs.extend(ret['docs']) for path in self.designpaths: ret = pushapps(path, [], export=True) docs.extend(ret['docs']) return docs