def generate(self, builder): # If extra directory exists (by default named 'osbs_extra') next to # the image descriptor, copy it contents to the target directory. # # https://github.com/cekit/cekit/issues/394 copy_recursively( os.path.join(os.path.dirname(self._descriptor_path), self.image.osbs.extra_dir), os.path.join(self.target, 'image') ) super(OSBSGenerator, self).generate(builder)
def _copy_to_dist_git(self): LOGGER.debug("Copying files to dist-git '{}' directory".format( self.dist_git_dir)) copy_recursively(os.path.join(self.target, 'image'), self.dist_git_dir)