Class: Serverspec::Type::Iptables

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/iptables.rb

Instance Attribute Summary

Attributes inherited from Base

#name

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

Returns:

  • (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_sObject


7
8
9
# File 'lib/serverspec/type/iptables.rb', line 7

def to_s
  'iptables'
end