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-0.79.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.79.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.78.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.77.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.77.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.76.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.76.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.75.2 lib/awspec/matcher/be_opened_only.rb
awspec-0.75.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.75.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.74.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.74.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.73.2 lib/awspec/matcher/be_opened_only.rb
awspec-0.73.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.73.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.72.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.71.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.70.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.69.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.69.0 lib/awspec/matcher/be_opened_only.rb