Module: DbImportDataProxy

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

Instance Method Summary collapse

Instance Method Details

#import(opts, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/metasploit/framework/data_service/proxy/db_import_data_proxy.rb', line 2

def import(opts, &block)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.import(opts, &block)
    end
  rescue Exception => e
    self.log_error(e, "Problem generating DB Import")
  end
end

#import_file(opts, &block) ⇒ Object



13
14
15
16
17
18
19
20
21
22
# File 'lib/metasploit/framework/data_service/proxy/db_import_data_proxy.rb', line 13

def import_file(opts, &block)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.import_file(opts, &block)
    end
  rescue Exception => e
    self.log_error(e, "Problem generating DB Import")
  end
end