LIBDIR | = | File.expand_path(File.join(File.dirname(__FILE__), "..")) | ||
DOCDIR | = | "/usr/share/doc/phusion_passenger" | ||
DOCDIR | = | File.expand_path(File.join(LIBDIR, "..", "doc")) | ||
VERSION_STRING | = | '2.2.9' | 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 |
# 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
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.
# File lib/phusion_passenger/packaging.rb, line 30 30: def self.natively_packaged? 31: return !File.exist?("#{LIBDIR}/../Rakefile") 32: end