Esempio n. 1
0
def setup(configpath):
    global config
    config = Config(configpath, 'client')
    global gpg
    gpg = GPG(config['gpg_home_dir'])
    global cache
    cache = FilesystemStore(config.get('cache_path'))
Esempio n. 2
0
def setup(configpath):
    global config
    config = Config(configpath, 'server')
    if config.get('store') == 'filesystem':
        global store
        store = FilesystemStore(config.get('store_path'))
    else:
        raise NotImplemented('Only filesystem store is currently implemented')