Sha256: 08f92c60684d2827202f6239508b79ed0cc3caa2e5c91247661340cd7f0dbac5

Contents?: true

Size: 269 Bytes

Versions: 9

Compression:

Stored size: 269 Bytes

Contents

class Specinfra::Command::Redhat::V5::Iptables < Specinfra::Command::Redhat::Base::Iptables
  def check_has_rule(rule, table=nil, chain=nil)
    cmd =  "iptables-save"
    cmd += " -t #{escape(table)}" if table
    cmd += " | grep -- #{escape(rule)}"
    cmd
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta14 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta13 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta12 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta11 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta10 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta9 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta8 lib/specinfra/command/redhat/v5/iptables.rb
specinfra-2.0.0.beta7 lib/specinfra/command/redhat/v5/iptables.rb