# 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