Sha256: 73168662ed487bc64afc1ecc07313134135056bcfc329476ff981377f483cddc
Contents?: true
Size: 702 Bytes
Versions: 3
Compression:
Stored size: 702 Bytes
Contents
# frozen_string_literal: true module Puffy module Formatters module Iptables4 # :nodoc: # IPv4 Iptables implementation of a Puffy Ruleset formatter. class Ruleset < Puffy::Formatters::Iptables::Ruleset # :nodoc: # Return an IPv4 Iptables 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 ['iptables', 'rules.v4'] end end # IPv4 Iptables implementation of a Puffy Rulet formatter. class Rule < Puffy::Formatters::Iptables::Rule # :nodoc: end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffy-1.0.0 | lib/puffy/formatters/iptables4.rb |
puffy-0.3.1 | lib/puffy/formatters/iptables4.rb |
puffy-0.2.0 | lib/puffy/formatters/iptables4.rb |