class Specinfra::Command::Solaris::Base::Ipnat

Public Class Methods

check_has_rule(rule) click to toggle source
# File lib/specinfra/command/solaris/base/ipnat.rb, line 3
def check_has_rule(rule)
  regexp = "^#{rule}$"
  "ipnat -l 2> /dev/null | grep -- #{escape(regexp)}"
end