Class: Puffy::Formatters::Iptables6::Ruleset
- Inherits:
-
Puffy::Formatters::Iptables::Ruleset
- Object
- Base::Ruleset
- Puffy::Formatters::Iptables::Ruleset
- Puffy::Formatters::Iptables6::Ruleset
- Defined in:
- lib/puffy/formatters/iptables6.rb
Overview
IPv6 Iptables implementation of a Puffy Ruleset formatter.
Instance Method Summary collapse
-
#emit_ruleset(rules, policy = :block) ⇒ Object
Return an IPv6 Iptables String representation of the provided
rulesPuffy::Rule with thepolicypolicy. - #filename_fragment ⇒ Object
Methods inherited from Puffy::Formatters::Iptables::Ruleset
Methods inherited from Base::Ruleset
Constructor Details
This class inherits a constructor from Puffy::Formatters::Base::Ruleset
Instance Method Details
#emit_ruleset(rules, policy = :block) ⇒ Object
Return an IPv6 Iptables String representation of the provided rules Puffy::Rule with the policy policy.
9 10 11 |
# File 'lib/puffy/formatters/iptables6.rb', line 9 def emit_ruleset(rules, policy = :block) super(rules.select(&:ipv6?), policy) end |
#filename_fragment ⇒ Object
13 14 15 |
# File 'lib/puffy/formatters/iptables6.rb', line 13 def filename_fragment ['iptables', 'rules.v6'] end |