Sha256: 563013206d0e65ec5a67dd6d052176a27b9e7e9bade4f2c3469b6cc87fc4586b

Contents?: true

Size: 293 Bytes

Versions: 1

Compression:

Stored size: 293 Bytes

Contents

RSpec::Matchers.define :have_iptables_rule do |rule|
  match do |iptables|
    ret = do_check(commands.check_iptables_rule(rule, @table, @chain))
    ret[:exit_code] == 0
  end
  chain :with_table do |table|
    @table = table
  end
  chain :with_chain do |chain|
    @chain = chain
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serverspec-0.1.7 lib/serverspec/matchers/have_iptables_rule.rb