Exemple #1
0
def file_list(load):
    '''
    Return a list of all files on the file server in a specified
    environment (specified as a key within the load dict).
    '''
    gitfs = salt.utils.gitfs.GitFS(__opts__)
    gitfs.init_remotes(__opts__['gitfs_remotes'], PER_REMOTE_OVERRIDES)
    return gitfs.file_list(load)
Exemple #2
0
def file_list(load):
    '''
    Return a list of all files on the file server in a specified
    environment (specified as a key within the load dict).
    '''
    gitfs = salt.utils.gitfs.GitFS(__opts__)
    gitfs.init_remotes(__opts__['gitfs_remotes'], PER_REMOTE_PARAMS)
    return gitfs.file_list(load)
Exemple #3
0
 def test_file_list(self):
     ret = gitfs.file_list(LOAD)
     self.assertIn('testfile', ret)