Module: Construqt::Firewalls
- Defined in:
- lib/construqt/firewalls.rb
Defined Under Namespace
Modules: Actions
Classes: Firewall
Class Method Summary
collapse
Class Method Details
.add(name, &block) ⇒ Object
234
235
236
237
238
239
|
# File 'lib/construqt/firewalls.rb', line 234
def self.add(name, &block)
throw "firewall with this name exists #{name}" if @firewalls[name]
fw = @firewalls[name] = Firewall.new(name)
block.call(fw)
fw
end
|
.find(name) ⇒ Object
241
242
243
244
245
|
# File 'lib/construqt/firewalls.rb', line 241
def self.find(name)
ret = @firewalls[name]
throw "firewall with this name #{name} not found" unless @firewalls[name]
ret
end
|