Пример #1
0
def envs(ignore_cache=False):
    '''
    Return a list of refs that can be used as environments
    '''
    gitfs = salt.utils.gitfs.GitFS(__opts__)
    gitfs.init_remotes(__opts__['gitfs_remotes'], PER_REMOTE_OVERRIDES)
    return gitfs.envs(ignore_cache=ignore_cache)
Пример #2
0
 def test_envs(self):
     ret = gitfs.envs()
     self.assertIn('base', ret)