Sha256: 43eb6531e4bab7a939c6a84e4223a7f77c32b4a51cf564f90b571aedb6bc064d

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), 'site_limit.rb')
require File.join(File.expand_path(File.dirname(__FILE__)), 'site_logfile.rb')
require File.join(File.expand_path(File.dirname(__FILE__)), 'binding_information.rb')
require File.join(File.expand_path(File.dirname(__FILE__)), 'application.rb')

class Site < IisObject

	# name
	# id

	# autoStart getting returns TrueClass from WIN32OLE
	prop :auto_start, :serverAutoStart, lambda { |a| a == true ? "true" : "false" }, lambda {|value| value == true || value == "true" }

	collection :applications, :application, Application

    children :bindings, :binding, BindingInformation

	child :limits, :limits, SiteLimit
	child :log_file, :logFile, SiteLogFile

	def configure
		cfg = SiteConfiguration.new name
		yield cfg
		cfg.apply_changes
	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inetmgr-0.6.0 lib/inetmgr/iis_object/site.rb