Class: Serverspec::Type::Ipfilter

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

Returns:

  • (Boolean)

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

def has_rule?(rule)
  backend.check_ipfilter_rule(rule)
end

#to_sObject


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

def to_s
  'ipfilter'
end