Class: Msf::Plugin::Capture::ConsoleCommandDispatcher::CaptureJobListener

Inherits:
Object
  • Object
show all
Defined in:
plugins/capture.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, done_event) ⇒ CaptureJobListener

Returns a new instance of CaptureJobListener.



16
17
18
19
# File 'plugins/capture.rb', line 16

def initialize(name, done_event)
  @name = name
  @done_event = done_event
end

Instance Attribute Details

#succeededObject

Returns the value of attribute succeeded.



36
37
38
# File 'plugins/capture.rb', line 36

def succeeded
  @succeeded
end

Instance Method Details

#completed(id, result, mod) ⇒ Object



29
# File 'plugins/capture.rb', line 29

def completed(id, result, mod); end

#failed(_id, _error, _mod) ⇒ Object



31
32
33
34
# File 'plugins/capture.rb', line 31

def failed(_id, _error, _mod)
  print_error("#{@name} failed to start")
  @done_event.set
end

#start(id) ⇒ Object



27
# File 'plugins/capture.rb', line 27

def start(id); end

#waiting(_id) ⇒ Object



21
22
23
24
25
# File 'plugins/capture.rb', line 21

def waiting(_id)
  self.succeeded = true
  print_good("#{@name} started")
  @done_event.set
end