Module: EventDataProxy

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

Instance Method Summary collapse

Instance Method Details

#events(opts = {}) ⇒ Object



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

def events(opts = {})
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.events(opts)
    end
  rescue => e
    self.log_error(e, "Problem retrieving events")
  end
end

#report_event(opts) ⇒ Object



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

def report_event(opts)
  begin
    self.data_service_operation do |data_service|
      add_opts_workspace(opts)
      data_service.report_event(opts)
    end
  rescue => e
    self.log_error(e, "Problem reporting event")
  end
end