aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/lighttpd.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/lighttpd.rb')
-rw-r--r--railties/lib/commands/lighttpd.rb4
1 files changed, 3 insertions, 1 deletions
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