예제 #1
0
	def run(self):
		files = get_resources_dests(".", [('', glob.strip(), '') for glob in self.files.strip().split("\n")]) if self.files else []
		for file in files:
			recode(file, file.replace(".yaml", ".json"))

		# Reload the configuration, so wildcards in resources will detect json files.
		self.distribution.parse_config_files()
예제 #2
0
 def assertRulesMatch(self, rules, spec):
     tempdir = self.build_files_tree(spec)
     expected = self.clean_tree(spec)
     result = get_resources_dests(tempdir, rules)
     self.assertEqual(expected, result)