Sha256: 243600908ec8f341536e221f45c336d329400d61c1ad784a506d72217ee6feb1

Contents?: true

Size: 584 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
inetmgr-0.3.0-mswin32 test/create_site.rb