Class: Spior::Iptables::Rules
- Inherits:
-
Object
- Object
- Spior::Iptables::Rules
- Defined in:
- lib/spior/iptables/rules.rb
Overview
Iptables::Rules, used to save or restore iptables rules
Instance Method Summary collapse
-
#initialize ⇒ Rules
constructor
A new instance of Rules.
- #restore ⇒ Object
- #save ⇒ Object
Constructor Details
#initialize ⇒ Rules
Returns a new instance of Rules.
11 12 13 14 |
# File 'lib/spior/iptables/rules.rb', line 11 def initialize @tmp_iptables_rules = Tempfile.new('iptables_rules') @save_path = search_iptables_config end |