Sha256: 7685a49d98a02793509f4439703d1808a507803884ddda29c92c5a8153419f54
Contents?: true
Size: 475 Bytes
Versions: 352
Compression:
Stored size: 475 Bytes
Contents
class Specinfra::Command::Linux::Base::Ip6tables < Specinfra::Command::Base::Ip6tables class << self def check_has_rule(rule, table=nil, chain=nil) cmd = "ip6tables" cmd += " -t #{escape(table)}" if table cmd += " -S" cmd += " #{escape(chain)}" if chain cmd += " | grep -- #{escape(rule)}" cmd += " || ip6tables-save" cmd += " -t #{escape(table)}" if table cmd += " | grep -- #{escape(rule)}" cmd end end end
Version data entries
352 entries across 352 versions & 3 rubygems