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/rex/post/hwbridge/extension.rb
Views: 11783
1
# -*- coding: binary -*-
2
3
module Rex
4
module Post
5
module HWBridge
6
7
###
8
#
9
# Base class for all extensions that holds a reference to the
10
# client context that they are part of. Each extension also has a defined
11
# name through which it is referenced.
12
#
13
###
14
class Extension
15
16
#
17
# Initializes the client and name attributes.
18
#
19
def initialize(client, name)
20
self.client = client
21
self.name = name
22
end
23
24
#
25
# The name of the extension.
26
#
27
attr_accessor :name
28
protected
29
attr_accessor :client # :nodoc:
30
end
31
32
end; end; end
33
34