Sha256: 028647e1f210e29085d51da35e7f57ff20723f4a6c33b5357bcdcfd473da2911

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 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_admin_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.4.0 lib/inetmgr/configuration.rb