class Construqt::Firewalls::Firewall::Host

Attributes

firewall[R]
rules[R]

Public Class Methods

new(firewall) click to toggle source
# File lib/construqt/firewalls.rb, line 294
def initialize(firewall)
  @firewall = firewall
  @rules = []
end

Public Instance Methods

add() click to toggle source
# File lib/construqt/firewalls.rb, line 305
def add
  entry = HostEntry.new
  #puts "ForwardEntry: #{@firewall.name} #{entry.input_only?} #{entry.output_only?}"
  @rules << entry
  entry
end