Class: Serverspec::Type::Iptables

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

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_ary

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#has_rule?(rule, table, chain) ⇒ Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/serverspec/type/iptables.rb', line 4

def has_rule?(rule, table, chain)
  backend.check_iptables_rule(rule, table, chain)
end

#to_sObject


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

def to_s
  'iptables'
end