Class: Construqt::Firewalls::Firewall
- Inherits:
-
Object
- Object
- Construqt::Firewalls::Firewall
show all
- Defined in:
- lib/construqt/firewalls.rb
Defined Under Namespace
Classes: Forward, Host, Mangle, Nat, Raw
Instance Method Summary
collapse
Constructor Details
#initialize(name) ⇒ Firewall
Returns a new instance of Firewall.
13
14
15
16
17
18
19
|
# File 'lib/construqt/firewalls.rb', line 13
def initialize(name)
@name = name
@raw = Raw.new(self)
@nat = Nat.new(self)
@forward = Forward.new(self)
@host = Host.new(self)
end
|
Instance Method Details
#forward(&block) ⇒ Object
189
190
191
|
# File 'lib/construqt/firewalls.rb', line 189
def forward(&block)
block.call(@forward)
end
|
#get_forward ⇒ Object
185
186
187
|
# File 'lib/construqt/firewalls.rb', line 185
def get_forward
@forward
end
|
#get_host ⇒ Object
214
215
216
|
# File 'lib/construqt/firewalls.rb', line 214
def get_host
@host
end
|
#get_nat ⇒ Object
108
109
110
|
# File 'lib/construqt/firewalls.rb', line 108
def get_nat
@nat
end
|
#get_raw ⇒ Object
72
73
74
|
# File 'lib/construqt/firewalls.rb', line 72
def get_raw
@raw
end
|
#host(&block) ⇒ Object
218
219
220
|
# File 'lib/construqt/firewalls.rb', line 218
def host(&block)
block.call(@host)
end
|
#mangle(&block) ⇒ Object
126
127
128
|
# File 'lib/construqt/firewalls.rb', line 126
def mangle(&block)
block.call(@mangle)
end
|
#name ⇒ Object
21
22
23
|
# File 'lib/construqt/firewalls.rb', line 21
def name
@name
end
|
#nat(&block) ⇒ Object
112
113
114
|
# File 'lib/construqt/firewalls.rb', line 112
def nat(&block)
block.call(@nat)
end
|
#raw(&block) ⇒ Object
76
77
78
|
# File 'lib/construqt/firewalls.rb', line 76
def raw(&block)
block.call(@raw)
end
|