From 136b34cef7acb27d5afb552649efd1e8db4a0eb5 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 12 May 2010 18:10:19 -0400 Subject: [PATCH] check for document_root --- lib/apache/master.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/apache/master.rb b/lib/apache/master.rb index 53a2fd8..01c353b 100644 --- a/lib/apache/master.rb +++ b/lib/apache/master.rb @@ -113,5 +113,11 @@ module Apache opts.each { |o| server_alias o } if !opts.empty? end end + + def document_root(*opts) + directory? opts.first + self << "DocumentRoot #{quoteize(opts.first)}" + end + alias :document_root! :document_root end end