Sha256: b698a047b4569565ca69104ac809afd9b1c9f561923da78d04b757fad24fcffb

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 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')

module Inetmgr
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

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