Sha256: 5b1cab246adfcfe6cf2efa90d2e015e80562a590c66f732020882079e5574f0d

Contents?: true

Size: 544 Bytes

Versions: 91

Compression:

Stored size: 544 Bytes

Contents

RSpec::Matchers.define :have_site_bindings do |port|
  match do |subject|
    if subject.class.name == 'Serverspec::Type::IisWebsite'
      subject.has_site_bindings?(port, @protocol, @ipaddress, @host_header)
    else
      className = subject.class.name
      raise "not supported class #{className}"
    end
  end

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

  chain :with_ipaddress do |ipaddress|
    @ipaddress = ipaddress
  end

  chain :with_host_header do |host_header|
    @host_header = host_header
  end
end

Version data entries

91 entries across 91 versions & 4 rubygems

Version Path
serverspec-2.12.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.11.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.10.2 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.10.1 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.10.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.9.1 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.9.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.8.2 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.8.1 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.8.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.7.2 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.7.1 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.7.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.6.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.5.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.4.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.3.1 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.3.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-2.2.0 lib/serverspec/matcher/have_site_bindings.rb
serverspec-clc-2.1.0 lib/serverspec/matcher/have_site_bindings.rb