Sha256: f5da8d047708f34186cf092305b87c3fdd50d1fada07127faaf3767709d950a6

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

class SiteConfiguration < Configuration

	def initialize(name, server = nil)
		super "MACHINE/WEBROOT/APPHOST/#{name}", server
	end

	def get_app_settings
		get_collection "appSettings"
	end

	def get_connection_strings
		get_collection "connectionStrings"
	end

	def get_validation_settings
		IisObject.new get_admin_section("system.webServer/validation")
	end

	def get_static_content_settings
		IisObject.new get_admin_section("system.webServer/staticContent")
	end

	def get_service_model_settings
		IisObject.new get_admin_section("system.serviceModel")
	end
	
private

	def get_collection(name)
		IisObjectCollection.new get_admin_section(name).Collection, :add, IisObject
	end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inetmgr-0.6.0 lib/inetmgr/site_configuration.rb
inetmgr-0.5.0 lib/inetmgr/site_configuration.rb