CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/ui/driver.rb
Views: 11623
1
# -*- coding: binary -*-
2
module Msf
3
module Ui
4
5
###
6
#
7
# The driver class is an abstract base class that is meant to provide
8
# a very general set of methods for 'driving' a user interface.
9
#
10
###
11
class Driver
12
13
def initialize
14
end
15
16
#
17
# Executes the user interface, optionally in an asynchronous fashion.
18
#
19
def run
20
raise NotImplementedError
21
end
22
23
#
24
# Stops executing the user interface.
25
#
26
def stop
27
end
28
29
#
30
# Cleans up any resources associated with the UI driver.
31
#
32
def cleanup
33
end
34
35
protected
36
37
end
38
39
end
40
end
41