MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _configure_database

Method _configure_database

shared.py:469–477  ·  view source on GitHub ↗

Point the singleton database at the active network store.

(self)

Source from the content-addressed store, hash-verified

467 self._update_loot_paths(loot_data_dir, loot_credentials_dir)
468 scan_results_dir = context.get('scan_results_dir') or self._default_scan_results_dir
469 vulnerabilities_dir = context.get('vulnerabilities_dir') or self._default_vulnerabilities_dir
470 self._update_output_paths(scan_results_dir, vulnerabilities_dir)
471 if configure_db and hasattr(self, 'db'):
472 self._configure_database()
473
474 def _configure_database(self):
475 """Point the singleton database at the active network store."""
476 if get_db is None or self._pager_mode:
477 return
478 if not self.current_network_dir or not self.current_network_db_path:
479 return
480 db = get_db(currentdir=self.currentdir)

Callers 4

__init__Method · 0.95
_reinit_dbMethod · 0.80

Calls 2

get_dbFunction · 0.90
configure_storageMethod · 0.80

Tested by

no test coverage detected