class Passenger::Railz::FrameworkSpawner
def initialize(options = {})
of the FrameworkSpawner server. If you wish to reload the Rails framework's code,
Note that the specified Rails framework will be loaded during the entire life time
It is not allowed to specify both +version+ and +vendor+.
usually something like "/webapps/foo/vendor/rails".
- :vendor: The directory to the vendor Rails framework to use. This is
this version is actually installed.
- :version: The Ruby on Rails version to use. It is not checked whether
Valid options:
Creates a new instance of FrameworkSpawner.
def initialize(options = {}) if !options.respond_to?(:'[]') raise ArgumentError, "The 'options' argument not seem to be an options hash" end @version = options[:version] @vendor = options[:vendor] if !@version && !@vendor raise ArgumentError, "Either the 'version' or the 'vendor' option must specified" elsif @version && @vendor raise ArgumentError, "It is not allowed to specify both the 'version' and the 'vendor' options" end super() define_message_handler(:spawn_application, :handle_spawn_application) define_message_handler(:reload, :handle_reload) end