Sha256: a6634d203a834fbfb410e318de1b0ac2e0e026c5f4a1656eb7841526827d3220

Contents?: true

Size: 495 Bytes

Versions: 1

Compression:

Stored size: 495 Bytes

Contents

class Configuration

	def initialize(path)
		@admin_manager = WIN32OLE.new "Microsoft.ApplicationHost.WritableAdminManager"
		@admin_manager.CommitPath = path;
	end

	# applies/commits all changes made since the creation of the
	# IisConfiguration instance or the last time this method was called.
    def apply_changes
	    @admin_manager.CommitChanges
    end

private

	def get_config_section section_name
		@admin_manager.GetAdminSection(section_name, @admin_manager.CommitPath)
	end
	
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inetmgr-0.3.0-mswin32 lib/inetmgr/configuration.rb