Sha256: d6471d93ca0c8d6b071365e34567aa0dd1d1fed342103cd1e739d51431a0ae6e

Contents?: true

Size: 445 Bytes

Versions: 12

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_denied do |port|
  match do |type|
    type.denied?(port, @protocol, @cidr, @rule_number)
  end

  chain :protocol do |protocol|
    @protocol = protocol
  end

  chain :for do |cidr|
    @cidr = cidr
  end

  chain :target do |cidr|
    @cidr = cidr
  end

  chain :source do |cidr|
    @cidr = cidr
  end

  chain :rule_number do |rule_number|
    @rule_number = rule_number
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
awspec-1.30.0 lib/awspec/matcher/be_denied.rb
awspec-1.29.3 lib/awspec/matcher/be_denied.rb
awspec-1.29.2 lib/awspec/matcher/be_denied.rb
awspec-1.29.1 lib/awspec/matcher/be_denied.rb
awspec-1.29.0 lib/awspec/matcher/be_denied.rb
awspec-1.28.2 lib/awspec/matcher/be_denied.rb
awspec-1.28.1 lib/awspec/matcher/be_denied.rb
awspec-1.28.0 lib/awspec/matcher/be_denied.rb
awspec-1.27.1 lib/awspec/matcher/be_denied.rb
awspec-1.27.0 lib/awspec/matcher/be_denied.rb
awspec-1.26.0 lib/awspec/matcher/be_denied.rb
awspec-1.25.2 lib/awspec/matcher/be_denied.rb