Sha256: 06d393ec223b6aa3e572763248fa99c11ef68a43180082c0b97c4a56cdbfb1b7

Contents?: true

Size: 251 Bytes

Versions: 9

Compression:

Stored size: 251 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
serverspec-0.5.8 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.7 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.6 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.5 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.5.4 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.4 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.3 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.2 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.1 lib/serverspec/matchers/have_iptables_rule.rb