Sha256: 7d867b9510fb7d5ac5784610b2f5a84a93a9e2aaf7c7bfdd7cd104d8d422d4ce

Contents?: true

Size: 260 Bytes

Versions: 46

Compression:

Stored size: 260 Bytes

Contents

RSpec::Matchers.define :have_iptables_rule do |rule|
  match do |iptables|
    backend.check_iptables_rule(example, rule, @table, @chain)
  end
  chain :with_table do |table|
    @table = table
  end
  chain :with_chain do |chain|
    @chain = chain
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
serverspec-0.5.3 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.2 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.1 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.0 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.14 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.13 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.12 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.11 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.10 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.9 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.8 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.7 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.6 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.5 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.4 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.3 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.2 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.1 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.4.0 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.3.2 lib/serverspec/matchers/have_iptables_rule.rb