예제 #1
0
파일: analyzer.py 프로젝트: hodovska/infra
	def __init__(self):
		MetaProcessor.__init__(
			self,
			"%s/input_schema.json" % getScriptDir(__file__),
			ref_schema_directory = "%s/../../artefacts/schemas" % getScriptDir(__file__)
		)
		self.apidiff = None
예제 #2
0
파일: extractor.py 프로젝트: hodovska/infra
	def __init__(self, input_schema = "%s/input_schema.json" % getScriptDir(__file__)):
		MetaProcessor.__init__(
			self,
			input_schema
		)

		self.contentmetadataextractor = None
		self.resource = ""
		self.project = ""
		self.commit = ""
예제 #3
0
파일: extractor.py 프로젝트: hodovska/infra
	def __init__(self):
		MetaProcessor.__init__(
			self,
			"%s/input_schema.json" % getScriptDir(__file__)
		)

		# received data
		self.specfile = ""
		self.distribution = ""
		self.product = ""
		self.package = ""

		# extracted data
		self.commit = ""
		self.project = ""
		self.ipprefix = ""
		self.lastupdated = ""
예제 #4
0
파일: analyzer.py 프로젝트: hodovska/infra
	def _validateInput(self, data):
		if not MetaProcessor._validateInput(self, data):
			return False

		# projects must be the same
		if data["exported_api_1"]["project"] != data["exported_api_2"]["project"]:
			logging.error("goapidiff: project1 != project2")
			# TODO(jchaloup): throw exception?
			return False

		return True
예제 #5
0
파일: extractor.py 프로젝트: nforro/infra
	def __init__(self, input_schema = "%s/input_schema.json" % getScriptDir(__file__)):
		MetaProcessor.__init__(
			self,
			input_schema
		)

		"""Setting implicit flags"""
		self.verbose = False
		self.skip_errors = True

		"""set implicit output"""
		# project
		self.project = ""
		# commit
		self.commit = ""
		# ipprefix
		self.ipprefix = ""

		"""set implicit states"""
		self.directory = ""

		self.gosymbolsextractor = None