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

Version Path
specinfra-2.91.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.90.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.90.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.89.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.88.2 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.88.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.88.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.87.2 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.87.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.87.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.86.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.85.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.85.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.84.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.84.0 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.83.4 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.83.3 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.83.2 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.83.1 lib/specinfra/command/linux/base/ip6tables.rb
specinfra-2.83.0 lib/specinfra/command/linux/base/ip6tables.rb