Sha256: b487fc25d316bc8bf390f63c246cd7a49c9d0c98d5a9373149197b9f997e5fe1

Contents?: true

Size: 584 Bytes

Versions: 2

Compression:

Stored size: 584 Bytes

Contents

require '../lib/inetmgr.rb'

IisConfiguration.configure do |cfg|
	cfg.get_sites.add do |site|
		site.name = "Contoso"
		site.auto_start = true
		site.bindings.add do |b|
			b.protocol = "http"
			b.binding_information = "*:80:www.contoso.com"
		end

		site.bindings.add do |b|
			b.protocol = "https"
			b.binding_information = "*:443:"
			b.add_ssl_certificate "e2564766bad7ebec8cf6899caa2a27c6391c4f19", "MY"
		end

		site.applications.add do |app|
			app.path = "/"
			app.virtual_directories.add do |dir|
				dir.path = "/"
				dir.physical_path = "D:\\temp"
			end
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inetmgr-0.5.0 test/create_site.rb
inetmgr-0.4.0 test/create_site.rb