Class: Specinfra::Command::Solaris::Base::Ipfilter

Inherits:
Base::Ipfilter show all
Defined in:
lib/specinfra/command/solaris/base/ipfilter.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

.check_has_rule(rule) ⇒ Object



3
4
5
# File 'lib/specinfra/command/solaris/base/ipfilter.rb', line 3

def check_has_rule(rule)
  "ipfstat -io 2> /dev/null | grep -- #{escape(rule)}"
end