Sha256: 2b288ed62a414a2a8a6b0174ba0c9e018bc56143dbe12a35fbc2b79840d04e38
Contents?: true
Size: 945 Bytes
Versions: 1
Compression:
Stored size: 945 Bytes
Contents
# Represents the local IIS configuration settings (meta base). class IisConfiguration < Configuration def initialize super "MACHINE/WEBROOT/APPHOST" end def self.configure cfg = IisConfiguration.new yield cfg cfg.apply_changes end # Gets all configured web sites. 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 # Gets all configure application pools. def get_application_pools s = get_config_section "system.applicationHost/applicationPools" IisObjectCollection.new s.Collection, :add, ApplicationPool end # Gets all configured service auto start providers. def get_auto_start_providers s = get_config_section "system.applicationHost/serviceAutoStartProviders" IisObjectCollection.new s.Collection, :add, AutoStartProvider end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inetmgr-0.3.0-mswin32 | lib/inetmgr/iis_configuration.rb |