Sha256: 75096e0314ac46bdac9edbaf8d230d32b21917eb02f396df65c680eb3d1ba766

Contents?: true

Size: 280 Bytes

Versions: 179

Compression:

Stored size: 280 Bytes

Contents

RSpec::Matchers.define :be_opened_only do |port|
  match do |sg|
    sg.opened_only?(port, @protocol, @cidr)
  end

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

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

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

Version data entries

179 entries across 179 versions & 4 rubygems

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