コード例 #1
0
ファイル: __init__.py プロジェクト: sdelements/sdetools
class Command(BaseCommand):
    help = 'WhiteHat -> SDE import utility.'

    def configure(self):
        wh_api = WhiteHatAPI(self.config)
        self.wh_integrator = WhiteHatIntegrator(wh_api, self.config)

    def handle(self):
        self.wh_integrator.initialize()
        self.wh_integrator.load_mapping_from_xml()
        self.wh_integrator.parse()
        self.emit.info('Finding file parsed successfully. Starting the import')
        self.wh_integrator.import_findings()
コード例 #2
0
ファイル: __init__.py プロジェクト: sdelements/sdetools
 def configure(self):
     wh_api = WhiteHatAPI(self.config)
     self.wh_integrator = WhiteHatIntegrator(wh_api, self.config)