Sha256: 3e43dfb015fbdd4e47cc818b70fdce9186b317ead0f59438254974b043022341

Contents?: true

Size: 301 Bytes

Versions: 13

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_opened do |port|
  match do |sg|
    sg.opened?(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

13 entries across 13 versions & 1 rubygems

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