Permalink
Browse files

* fix: robustify hack

  • Loading branch information...
hipe committed Jul 8, 2010
1 parent 41997ac commit 5286a9771368b436cf3ec8997e2b9736e95da2fe
Showing with 5 additions and 0 deletions.
  1. +5 −0 bin/vhost
View
@@ -571,6 +571,11 @@ module Hipe
:server_name => $2, :conf_path => $3, :port => $1
)
when /^Syntax OK$/: #skip for now end
+ when /^httpd: Could not reliably determine/: #skip
+ when /^\*:(\d{4}) +([^ ]+) +\((.+)\:\d+\)$/
+ infos.push OpenStruct.new(
+ :server_name => $2, :conf_path => $3, :port => $1
+ )
else
raise Fail.new("we suck: parse fail:\n#{line.inspect}")
end

0 comments on commit 5286a97

Please sign in to comment.