Parent

IisConfiguration

Represents the local IIS configuration settings (meta base).

Public Class Methods

configure() click to toggle source
# File lib/inetmgr/iis_configuration.rb, line 9
def self.configure

        cfg = IisConfiguration.new

        yield cfg

        cfg.apply_changes

end
new() click to toggle source
# File lib/inetmgr/iis_configuration.rb, line 5
def initialize

        super "MACHINE/WEBROOT/APPHOST"

end

Public Instance Methods

get_application_pools() click to toggle source

Gets all configure application pools.

# File lib/inetmgr/iis_configuration.rb, line 22
def get_application_pools

            s = get_config_section "system.applicationHost/applicationPools"

            IisObjectCollection.new s.Collection, :add, ApplicationPool

end
get_auto_start_providers() click to toggle source

Gets all configured service auto start providers.

# File lib/inetmgr/iis_configuration.rb, line 28
def get_auto_start_providers

        s = get_config_section "system.applicationHost/serviceAutoStartProviders"

        IisObjectCollection.new s.Collection, :add, AutoStartProvider

end
get_sites() click to toggle source

Gets all configured web sites.

# File lib/inetmgr/iis_configuration.rb, line 16
def get_sites

            s = get_config_section "system.applicationHost/sites"

        IisObjectCollection.new s.Collection, :site, Site, lambda { |site| site.id = s.Collection.Count + 1 }

end

[Validate]

Generated with the Darkfish Rdoc Generator 2.