Permalink
Browse files

Show Passenger version number in the installer.

  • Loading branch information...
1 parent a332965 commit 5833b5d217b4aac527fd2ec3308410e2dc8f97bc @FooBarWidget FooBarWidget committed May 5, 2008
Showing with 4 additions and 2 deletions.
  1. +3 −1 bin/passenger-install-apache2-module
  2. +1 −1 lib/passenger/templates/welcome.txt.erb
@@ -35,6 +35,8 @@ class Installer
PASSENGER_WEBSITE = "http://www.modrails.com/"
PHUSION_WEBSITE = "www.phusion.nl"
USERS_GUIDE = "#{PASSENGER_ROOT}/doc/Users guide.html"
+ File.read("#{PASSENGER_ROOT}/Rakefile") =~ /^PACKAGE_VERSION = "(.*)"$/
+ PASSENGER_VERSION = $1
REQUIRED_DEPENDENCIES = [
Dependencies::GCC,
@@ -77,7 +79,7 @@ private
end
def show_welcome_screen
- render_template 'welcome'
+ render_template 'welcome', :version => PASSENGER_VERSION
wait
end
@@ -1,4 +1,4 @@
-<banner>Welcome to the Passenger Apache 2 module installer.</banner>
+<banner>Welcome to the Passenger Apache 2 module installer, v<%= @version %>.</banner>
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

0 comments on commit 5833b5d

Please sign in to comment.