Class: Serverspec::Type::Iptables
- Defined in:
- lib/serverspec/type/iptables.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #inspect, #to_ary
Constructor Details
This class inherits a constructor from Serverspec::Type::Base
Instance Method Details
#has_rule?(rule, table, chain) ⇒ Boolean
3 4 5 |
# File 'lib/serverspec/type/iptables.rb', line 3 def has_rule?(rule, table, chain) @runner.check_iptables_has_rule(rule, table, chain) end |
#to_s ⇒ Object
7 8 9 |
# File 'lib/serverspec/type/iptables.rb', line 7 def to_s 'iptables' end |