Created
June 15, 2012 22:02
-
-
Save rodrigopinto/2938918 to your computer and use it in GitHub Desktop.
design code suggestions?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ToolParserWorker | |
| include Sidekiq::Worker | |
| def perform(scan) | |
| ## On a near futute NessusParser will die an become a ParserFactory based on scan tool type | |
| report = NessusParser.execute(self.file.current_path) # execute returns a Report object | |
| scan.update_parsed_report(report.to_json) # scan is mongo document | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Não tinha entendido que haveriam vários parsers, neste caso fico com a solução do @pellegrino, reescrita pelo @caike