class Command(BaseCommand): help = 'ThreadFix -> SDE import utility.' def configure(self): tf_api = ThreadFixAPI(self.config) self.tf_integrator = ThreadFixIntegrator(tf_api, self.config) def handle(self): self.tf_integrator.initialize() self.tf_integrator.load_mapping_from_xml() self.tf_integrator.parse() self.emit.info('Findings retrieved successfully. Starting the import') self.tf_integrator.import_findings()
def configure(self): tf_api = ThreadFixAPI(self.config) self.tf_integrator = ThreadFixIntegrator(tf_api, self.config)