def _plant_files(self, files, ctxt): for file_def in files: filespec = ctxt.data['files'][file_def] vvfile = File().from_seed(filespec) src_filename = self._working_filename(file_def) dst_filename = filespec['location'] # print("PLANTFILES: {0} {1}".format(src_filename,dst_filename)) vvfile.plant(src_filename, dst_filename, ctxt)
def gather(self, source, parameters, env): rv = {} files = {} for filename in parameters.get('files', []): vvfile = File().from_source(source, filename) files[filename] = vvfile.to_seed() rv['files'] = files return rv
def _sow_files(self, files, ctxt): self._dir = self._work_dir( ctxt.args.stage_dir, ctxt.target_name, ctxt.number) ctxt.es.mkdir(self._dir) for file_def in files: filespec = ctxt.data['files'][file_def] # print("_sow_files: {0} - {1}".format(file_def, filespec)) vvfile = File().from_seed(filespec) filename = self._working_filename(file_def) vvfile.sow(filename, ctxt)