Пример #1
0
 def run_second(self, root):
     info('run_second()')
     db = StorageFilesystem(root, compress=True)
     cc = Context(db=db)
     # 
     cc.comp_dynamic(f2, job_id='f')
     cc.batch_command('clean;make recurse=1')
Пример #2
0
 def run_second(self, root):
     info('run_second()')
     db = StorageFilesystem(root, compress=True)
     cc = Context(db=db)
     # 
     cc.comp_dynamic(f2, job_id='f')
     cc.batch_command('clean;make recurse=1')
Пример #3
0
def sync_data_down_dir(syncdir):
    
    if not os.path.exists(syncdir):
        os.makedirs(syncdir)
    
    syncdir = os.path.realpath(syncdir)

    if not syncdir or not syncdir[0] == '/':
        msg = 'I expect the multyvac_sync_down dir to be an absolute path,'
        msg += ' got %r.' % syncdir
        raise ValueError(msg)
    
    vol, rest, rest_minus = get_volume_for_dir(syncdir)
    info(down_arrow + ' Synchronizing directory %r down.' % friendly_path(syncdir))
    vol.sync_down(rest, os.path.dirname(syncdir))
Пример #4
0
def sync_data_down_dir(syncdir):

    if not os.path.exists(syncdir):
        os.makedirs(syncdir)

    syncdir = os.path.realpath(syncdir)

    if not syncdir or not syncdir[0] == '/':
        msg = 'I expect the multyvac_sync_down dir to be an absolute path,'
        msg += ' got %r.' % syncdir
        raise ValueError(msg)

    vol, rest, rest_minus = get_volume_for_dir(syncdir)
    info(down_arrow +
         ' Synchronizing directory %r down.' % friendly_path(syncdir))
    vol.sync_down(rest, os.path.dirname(syncdir))
Пример #5
0
def sync_data_up_dir(syncdir, skipsync=False):
    if not os.path.exists(syncdir):
        msg = 'Dir %r does not exist.' % syncdir
        raise ValueError(msg)
    
    syncdir = os.path.realpath(syncdir)

    if not syncdir or not syncdir[0] == '/':
        msg = 'I expect the multyvac_sync_up dir to be an absolute path,'
        msg += ' got %r.' % syncdir
        raise ValueError(msg)
    
    vol, rest, rest_minus = get_volume_for_dir(syncdir)
    
    vol.mkdir(rest)
    if not skipsync:
        info(up_arrow + ' Synchronizing directory %r up.' % friendly_path(syncdir))
        vol.sync_up(syncdir, rest_minus)
    
    return vol.name
Пример #6
0
def sync_data_up_dir(syncdir, skipsync=False):
    if not os.path.exists(syncdir):
        msg = 'Dir %r does not exist.' % syncdir
        raise ValueError(msg)

    syncdir = os.path.realpath(syncdir)

    if not syncdir or not syncdir[0] == '/':
        msg = 'I expect the multyvac_sync_up dir to be an absolute path,'
        msg += ' got %r.' % syncdir
        raise ValueError(msg)

    vol, rest, rest_minus = get_volume_for_dir(syncdir)

    vol.mkdir(rest)
    if not skipsync:
        info(up_arrow +
             ' Synchronizing directory %r up.' % friendly_path(syncdir))
        vol.sync_up(syncdir, rest_minus)

    return vol.name