Sha256: 18a9e84bca9afc65f8b3b2d98fb2ec32c288432e3edd4a4dbcc651d74b0c85d8

Contents?: true

Size: 414 Bytes

Versions: 191

Compression:

Stored size: 414 Bytes

Contents

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

191 entries across 191 versions & 4 rubygems

Version Path
awspec-1.25.1 lib/awspec/matcher/be_denied.rb
awspec-1.25.0 lib/awspec/matcher/be_denied.rb
awspec-1.24.4 lib/awspec/matcher/be_denied.rb
awspec-1.24.3 lib/awspec/matcher/be_denied.rb
awspec-1.24.2 lib/awspec/matcher/be_denied.rb
awspec-1.24.1 lib/awspec/matcher/be_denied.rb
awspec-1.24.0 lib/awspec/matcher/be_denied.rb
awspec-1.23.0 lib/awspec/matcher/be_denied.rb
awspec-1.22.1 lib/awspec/matcher/be_denied.rb
awspec-1.22.0 lib/awspec/matcher/be_denied.rb
awspec-1.21.1 lib/awspec/matcher/be_denied.rb
awspec-1.21.0 lib/awspec/matcher/be_denied.rb
awspec-1.20.0 lib/awspec/matcher/be_denied.rb
awspec-1.19.2 lib/awspec/matcher/be_denied.rb
awspec-1.19.1 lib/awspec/matcher/be_denied.rb
awspec-1.19.0 lib/awspec/matcher/be_denied.rb
cthiesfork-awspec-1.2.4 lib/awspec/matcher/be_denied.rb
awspec-api_gateway_extended-1.2.4 lib/awspec/matcher/be_denied.rb
awspec-api_gateway_extended-1.2.3 lib/awspec/matcher/be_denied.rb
awspec-1.18.6 lib/awspec/matcher/be_denied.rb