Module: Msf::GeneralEventSubscriber
- Included in:
- FrameworkEventSubscriber, Simple::Framework
- Defined in:
- lib/msf/core/event_dispatcher.rb
Overview
This event subscriber class exposes methods that are called when internal framework events occur, such as the loading and creation of a module.
Instance Method Summary collapse
-
#on_module_complete(instance) ⇒ Object
Called when a module finishes.
-
#on_module_created(instance) ⇒ Object
Called when a new module instance is created.
-
#on_module_error(instance, exception) ⇒ Object
Called when a module raises an exception.
-
#on_module_load(refname, klass) ⇒ Object
Called when a module is loaded.
-
#on_module_run(instance) ⇒ Object
Called when a module is run.
Instance Method Details
#on_module_complete(instance) ⇒ Object
Called when a module finishes
34 35 |
# File 'lib/msf/core/event_dispatcher.rb', line 34 def on_module_complete(instance) end |
#on_module_created(instance) ⇒ Object
Called when a new module instance is created
22 23 |
# File 'lib/msf/core/event_dispatcher.rb', line 22 def on_module_created(instance) end |
#on_module_error(instance, exception) ⇒ Object
Called when a module raises an exception
40 41 |
# File 'lib/msf/core/event_dispatcher.rb', line 40 def on_module_error(instance, exception) end |
#on_module_load(refname, klass) ⇒ Object
Called when a module is loaded
16 17 |
# File 'lib/msf/core/event_dispatcher.rb', line 16 def on_module_load(refname, klass) end |
#on_module_run(instance) ⇒ Object
Called when a module is run
28 29 |
# File 'lib/msf/core/event_dispatcher.rb', line 28 def on_module_run(instance) end |