Class: Serverspec::Type::Ip6tables

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/ip6tables.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)


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

def has_rule?(rule, table, chain)
  @runner.check_ip6tables_has_rule(rule, table, chain)
end

#to_sObject



8
9
10
# File 'lib/serverspec/type/ip6tables.rb', line 8

def to_s
  'ip6tables'
end