module Construqt::Firewalls
Public Class Methods
add(name, &block)
click to toggle source
# File lib/construqt/firewalls.rb, line 333 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)
click to toggle source
# File lib/construqt/firewalls.rb, line 340 def self.find(name) ret = @firewalls[name] throw "firewall with this name #{name} not found" unless @firewalls[name] ret end