From 5c1eb899dea9aad18220b6403d3dd83863591f28 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 7 Nov 2005 04:06:05 +0000 Subject: Make use of silence_stderr in script/lighttpd, script/plugin, and Rails::Info git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2903 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/commands/lighttpd.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'railties/lib/commands/lighttpd.rb') diff --git a/railties/lib/commands/lighttpd.rb b/railties/lib/commands/lighttpd.rb index 73bd466446..df6ad663f9 100644 --- a/railties/lib/commands/lighttpd.rb +++ b/railties/lib/commands/lighttpd.rb @@ -1,4 +1,6 @@ -unless RUBY_PLATFORM !~ /mswin/ && `lighttpd -version 2>/dev/null`.size > 0 +require 'active_support' + +unless RUBY_PLATFORM !~ /mswin/ && !silence_stderr { `lighttpd -version` }.blank? puts "lighttpd is not available on your system (or not in your path)" exit 1 end -- cgit v1.2.3