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.68.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.67.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.67.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.66.2 lib/awspec/matcher/be_opened_only.rb
awspec-0.66.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.66.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.65.2 lib/awspec/matcher/be_opened_only.rb
awspec-0.65.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.65.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.64.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.63.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.63.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.62.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.62.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.61.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.61.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.60.1 lib/awspec/matcher/be_opened_only.rb
awspec-0.60.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.59.0 lib/awspec/matcher/be_opened_only.rb
awspec-0.58.0 lib/awspec/matcher/be_opened_only.rb