Sha256: 4556775d400bc77d480a94e8347d4a56c0af791256874a9e85201eef06c791f0
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true module Puffy module Formatters module Netfilter4 # :nodoc: # IPv4 Netfilter implementation of a Puffy Ruleset formatter. class Ruleset < Puffy::Formatters::Netfilter::Ruleset # :nodoc: # Return an IPv4 Netfilter String representation of the provided +rules+ Puffy::Rule with the +policy+ policy. def emit_ruleset(rules, policy = :block) super(rules.select(&:ipv4?), policy) end def filename_fragment ['netfilter', 'rules.v4'] end end # IPv4 Netfilter implementation of a Puffy Rulet formatter. class Rule < Puffy::Formatters::Netfilter::Rule # :nodoc: end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffy-0.1.0 | lib/puffy/formatters/netfilter4.rb |