Module: DbExportDataProxy

Included in:
DataProxyAutoLoader
Defined in:
lib/metasploit/framework/data_service/proxy/db_export_data_proxy.rb

Instance Method Summary collapse

Instance Method Details

#run_db_export(path, format) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/metasploit/framework/data_service/proxy/db_export_data_proxy.rb', line 2

def run_db_export(path, format)
  begin
    self.data_service_operation do |data_service|
      opts = {
          path: path,
          format: format
      }
      add_opts_workspace(opts)
      data_service.run_db_export(opts)
    end
  rescue => e
    self.log_error(e, "Problem generating DB Export")
  end
end