Module: PhusionPassenger

Module PhusionPassenger |
In: | lib/phusion_passenger/abstract_installer.rb lib/phusion_passenger/abstract_request_handler.rb lib/phusion_passenger/abstract_server.rb lib/phusion_passenger/abstract_server_collection.rb lib/phusion_passenger/admin_tools.rb lib/phusion_passenger/application.rb lib/phusion_passenger/console_text_template.rb lib/phusion_passenger/constants.rb lib/phusion_passenger/dependencies.rb lib/phusion_passenger/events.rb lib/phusion_passenger/exceptions.rb lib/phusion_passenger/html_template.rb lib/phusion_passenger/message_channel.rb lib/phusion_passenger/packaging.rb lib/phusion_passenger/spawn_manager.rb lib/phusion_passenger/utils.rb lib/phusion_passenger/admin_tools/control_process.rb lib/phusion_passenger/rack/application_spawner.rb lib/phusion_passenger/rack/request_handler.rb lib/phusion_passenger/railz/application_spawner.rb lib/phusion_passenger/railz/cgi_fixed.rb lib/phusion_passenger/railz/framework_spawner.rb lib/phusion_passenger/railz/request_handler.rb lib/phusion_passenger/wsgi/application_spawner.rb ext/phusion_passenger/native_support.c

Methods

- call_event
- natively_packaged?
- on_event

Classes and Modules
Module PhusionPassenger::AdminTools
Module PhusionPassenger::NativeSupport
Module PhusionPassenger::Rack
Module PhusionPassenger::Railz
Module PhusionPassenger::Utils
Module PhusionPassenger::WSGI
Class PhusionPassenger::AbstractInstaller
Class PhusionPassenger::AbstractRequestHandler
Class PhusionPassenger::AbstractServer
Class PhusionPassenger::AbstractServerCollection
Class PhusionPassenger::AppInitError
Class PhusionPassenger::Application
Class PhusionPassenger::ConsoleTextTemplate
Class PhusionPassenger::FrameworkInitError
Class PhusionPassenger::HTMLTemplate
Class PhusionPassenger::InitializationError
Class PhusionPassenger::InvalidPath
Class PhusionPassenger::MessageChannel
Class PhusionPassenger::SpawnManager
Class PhusionPassenger::UnknownError
Class PhusionPassenger::VersionNotFound
Constants

VERSION_STRING | = | '2.2.5'
| Phusion Passenger version number. Don‘t forget to edit ext/common/Version.h too.
DEFAULT_FRAMEWORK_SPAWNER_MAX_IDLE_TIME | = | 30 * 60
DEFAULT_APP_SPAWNER_MAX_IDLE_TIME | = | 10 * 60
LIBDIR | = | File.expand_path(File.join(File.dirname(__FILE__), ".."))
DOCDIR | = | "/usr/share/doc/phusion_passenger"
DOCDIR | = | File.expand_path(File.join(LIBDIR, "..", "doc"))

Public Class methods
call_event(name, *args)

[ show source ]

        # File lib/phusion_passenger/events.rb, line 32
    32:         def self.call_event(name, *args)
    33:                 callback_list_for_event(name).each do |callback|
    34:                         callback.call(*args)
    35:                 end
    36:         end

natively_packaged?()

Returns whether this Phusion Passenger installation is packaged using the OS‘s native package management system, i.e. as opposed to being installed from source or with RubyGems.

[ show source ]

        # File lib/phusion_passenger/packaging.rb, line 30
    30:         def self.natively_packaged?
    31:                 return !File.exist?("#{LIBDIR}/../Rakefile")
    32:         end

on_event(name, &block)

[ show source ]

        # File lib/phusion_passenger/events.rb, line 28
    28:         def self.on_event(name, &block)
    29:                 callback_list_for_event(name) << block
    30:         end