# File lib/mongrel_config/init.rb, line 28
28:   def validate
29:       valid?(@uri, "Must give a uri")
30:       valid?(@port && @port.to_i > 0, "Must give a valid port")
31:       valid?(@host, "Host IP to bind must be given")
32:       
33:     if RUBY_PLATFORM !~ /mswin/    
34:       valid_dir? @cwd, "Cannot change to a directory that doesn't exist"
35:       Dir.chdir @cwd
36:       valid_dir? "log", "Log directory does not exist"
37:     end
38: 
39:     return @valid
40:   end