Skip to content

Commit

Permalink
Fix problems introduced by the recent renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Feb 3, 2009
1 parent e5ac012 commit db845bb
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -31,7 +31,7 @@ verbose true
##### Configuration

# Don't forget to edit Configuration.h too
PACKAGE_VERSION = Passenger::VERSION_STRING
PACKAGE_VERSION = PhusionPassenger::VERSION_STRING
OPTIMIZE = ["yes", "on", "true"].include?(ENV['OPTIMIZE'])

include PlatformInfo
Expand Down
8 changes: 4 additions & 4 deletions bin/passenger-install-apache2-module
Expand Up @@ -55,7 +55,7 @@ class Installer < PhusionPassenger::AbstractInstaller
end

def install!
if Passenger.natively_packaged?
if PhusionPassenger.natively_packaged?
check_dependencies || exit(1)
show_apache2_config_snippets
show_deployment_example
Expand All @@ -78,7 +78,7 @@ class Installer < PhusionPassenger::AbstractInstaller

private
def show_welcome_screen
render_template 'apache2/welcome', :version => Passenger::VERSION_STRING
render_template 'apache2/welcome', :version => PhusionPassenger::VERSION_STRING
wait
end

Expand Down Expand Up @@ -142,7 +142,7 @@ private
def show_apache2_config_snippets
puts
line
if Passenger.natively_packaged?
if PhusionPassenger.natively_packaged?
module_location = "#{PASSENGER_ROOT}/lib/passenger/mod_passenger.so"
else
module_location = "#{PASSENGER_ROOT}/ext/apache2/mod_passenger.so"
Expand All @@ -151,7 +151,7 @@ private
:module_location => module_location,
:passenger_root => PASSENGER_ROOT,
:ruby => RUBY
if Passenger.natively_packaged?
if PhusionPassenger.natively_packaged?
wait(10)
else
wait
Expand Down
16 changes: 7 additions & 9 deletions bin/passenger-install-nginx-module
Expand Up @@ -8,13 +8,13 @@ $LOAD_PATH.unshift("#{PASSENGER_ROOT}/ext")

require 'optparse'
require 'fileutils'
require 'passenger/platform_info'
require 'passenger/dependencies'
require 'passenger/abstract_installer'
require 'phusion_passenger/platform_info'
require 'phusion_passenger/dependencies'
require 'phusion_passenger/abstract_installer'
include PlatformInfo

class Installer < Passenger::AbstractInstaller
include Passenger
class Installer < PhusionPassenger::AbstractInstaller
include PhusionPassenger

NGINX_VERSION = "0.6.34"

Expand All @@ -37,7 +37,7 @@ class Installer < Passenger::AbstractInstaller

check_write_permission_to_passenger_root || exit(1)

compile_passenger_support_files
compile_passenger_support_files || exit(1)

download_and_install = should_we_download_and_install_nginx_automatically?
if pcre_is_installed?
Expand Down Expand Up @@ -97,9 +97,7 @@ private
def compile_passenger_support_files
new_screen
color_puts "<banner>Compiling Passenger support files...</banner>"
if !sh("rake nginx")
return false
end
return sh("rake nginx")
end

def should_we_download_and_install_nginx_automatically?
Expand Down
12 changes: 6 additions & 6 deletions lib/phusion_passenger/abstract_installer.rb
Expand Up @@ -16,19 +16,19 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

require 'passenger/console_text_template'
require 'passenger/version'
require 'phusion_passenger/console_text_template'
require 'phusion_passenger/version'

module Passenger
module PhusionPassenger

# Abstract base class for installers. Used by passenger-install-apache2-module
# and passenger-install-nginx-module.
class AbstractInstaller
PASSENGER_WEBSITE = "http://www.modrails.com/"
PHUSION_WEBSITE = "www.phusion.nl"
USERS_GUIDE = begin
if Passenger.natively_packaged?
"/usr/share/doc/passenger/Users guide.html"
if PhusionPassenger.natively_packaged?
"/usr/share/doc/phusion_passenger/Users guide.html"
else
File.expand_path("#{LIBDIR}/../../doc/Users guide.html")
end
Expand Down Expand Up @@ -194,4 +194,4 @@ def print_dependency_installation_instructions(dep)
end
end

end # module Passenger
end # module PhusionPassenger
4 changes: 2 additions & 2 deletions lib/phusion_passenger/version.rb
Expand Up @@ -16,12 +16,12 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

module Passenger
module PhusionPassenger
LIBDIR = File.expand_path(File.dirname(__FILE__))

VERSION_STRING = '2.1.0'

def self.natively_packaged?
return !File.exist?("#{LIBDIR}/../../Rakefile")
end
end
end

0 comments on commit db845bb

Please sign in to comment.