コード例 #1
0
 config.retryCount = 0
 if config.only not in (''):
     if config.only in ('validate'):
         refApp.validate(config)
     if config.only in ('buildPredixSDKs'):
         refApp.buildPredixSDKs(config)
     if config.only in ('buildReferenceApp'):
         refApp.buildReferenceApp(config)
     if config.only in ('deployReferenceAppDelete'):
         refApp.deployReferenceAppDelete(config)
     if config.only in ('deployReferenceAppCreateUAA'):
         refApp.deployReferenceAppCreateUAA(config)
     if config.only in ('deployReferenceAppCreateACS'):
         refApp.deployReferenceAppCreateACS(config)
         refApp.deployReferenceAppCreateAssetAndTimeseries(config)
         refApp.deployReferenceAppFinalPrep(config)
     if config.only in ('deployReferenceAppCreateAssetAndTimeseries'):
         refApp.deployReferenceAppCreateAssetAndTimeseries(config)
         refApp.deployReferenceAppFinalPrep(config)
     if config.only in ('deployReferenceAppAddAuthorities'):
         refApp.deployReferenceAppAddAuthorities(config)
     if config.only in ('deployReferenceAppCreateDataseed'):
         refApp.deployReferenceAppCreateDataseed(config)
     if config.only in ('deployReferenceAppCreateDatasource'):
         refApp.deployReferenceAppCreateDatasource(config)
     if config.only in ('deployReferenceAppCreateWebsocketServer'):
         refApp.deployReferenceAppCreateWebsocketServer(config)
     if config.only in ('deployReferenceAppCreateDataIngestion'):
         refApp.deployReferenceAppCreateDataIngestion(config)
     if config.only in ('deployReferenceAppCreateMachineSimulator'):
         refApp.deployReferenceAppCreateMachineSimulator(config)
コード例 #2
0
print ('only=' + config.only)
print("****************** Installing Reference Application ******************")
try:

	config.retryCount=0
	if config.only not in (''):
		if config.only in ('buildReferenceApp'):
			refApp.buildReferenceApp(config)
		if config.only in ('deployReferenceAppDelete'):
			refApp.deployReferenceAppDelete(config)
		if config.only in ('deployReferenceAppCreateUAA'):
			refApp.deployReferenceAppCreateUAA(config)
		if config.only in ('deployReferenceAppCreateACS'):
			refApp.deployReferenceAppCreateACS(config)
			refApp.deployReferenceAppCreateAssetAndTimeseries(config)
			refApp.deployReferenceAppFinalPrep(config)
		if config.only in ('deployReferenceAppCreateAssetAndTimeseries'):
			refApp.deployReferenceAppCreateAssetAndTimeseries(config)
			refApp.deployReferenceAppFinalPrep(config)
		if config.only in ('deployReferenceAppAddAuthorities'):
			refApp.deployReferenceAppAddAuthorities(config)
		if config.only in ('deployReferenceAppCreateDataseed'):
			refApp.deployReferenceAppCreateDataseed(config)
		if config.only in ('deployReferenceAppCreateDatasource'):
			refApp.deployReferenceAppCreateDatasource(config)
		if config.only in ('deployReferenceAppCreateWebsocketServer'):
			refApp.deployReferenceAppCreateWebsocketServer(config)
		if config.only in ('deployReferenceAppCreateDataIngestion'):
			refApp.deployReferenceAppCreateDataIngestion(config)
		if config.only in ('deployReferenceAppCreateMachineSimulator'):
			refApp.deployReferenceAppCreateMachineSimulator(config)