def run(self):
     """Install patched manifests to the master node."""
     for srcpath, dstpath in self._copypairs:
         # we can't just copy folder as is, since it's not a full and
         # overwrite mode will erase entire old content
         for srcfile in iterfiles(srcpath):
             copy(srcfile, srcfile.replace(srcpath, dstpath))
Beispiel #2
0
 def run(self):
     """Install patched manifests to the master node.
     """
     for srcpath, dstpath in self._copypairs:
         # we can't just copy folder as is, since it's not a full and
         # overwrite mode will erase entire old content
         for srcfile in iterfiles(srcpath):
             copy(srcfile, srcfile.replace(srcpath, dstpath))
 def test_iterfiles(self, walk):
     for _ in utils.iterfiles('path/to/dir'):
         pass
     walk.assert_called_once_with('path/to/dir', topdown=True)
Beispiel #4
0
 def test_iterfiles(self, walk):
     for _ in utils.iterfiles('path/to/dir'):
         pass
     walk.assert_called_once_with('path/to/dir', topdown=True)