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.2.10 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.9 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.8 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.7 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.6 lib/serverspec/matchers/have_iptables_rule.rb
serverspec-0.2.5 lib/serverspec/matchers/have_iptables_rule.rb