Class: PhusionPassenger::NativeSupportLoader
- Defined in:
- lib/phusion_passenger/native_support.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.supported? ⇒ Boolean
27 28 29 |
# File 'lib/phusion_passenger/native_support.rb', line 27 def self.supported? return !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby" || RUBY_ENGINE == "rbx" end |
Instance Method Details
#start ⇒ Object
43 44 45 |
# File 'lib/phusion_passenger/native_support.rb', line 43 def start try_load || download_binary_and_load || compile_and_load end |
#try_load ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/phusion_passenger/native_support.rb', line 31 def try_load if defined?(NativeSupport) return true else require 'phusion_passenger' load_from_native_support_output_dir || load_from_source_root || load_from_load_path || load_from_home_dir end end |