Class: Merb::BootLoader::ChooseAdapter

Inherits:
Merb::BootLoader show all
Defined in:
lib/merb-core/bootloader.rb

Class Method Summary collapse

Methods inherited from Merb::BootLoader

after, after_app_loads, before, before_app_loads, before_master_shutdown, before_worker_shutdown, default_framework, finished?, inherited, move_klass

Class Method Details

.runObject

Choose the Rack adapter/server to use and set Merb.adapter.

Returns

nil

:api: plugin



1304
1305
1306
1307
1308
# File 'lib/merb-core/bootloader.rb', line 1304

def self.run
  # Check if we running in IRB if so run IRB adapter
  Merb::Config[:adapter] = 'irb' if Merb.running_irb?
  Merb.adapter = Merb::Rack::Adapter.get(Merb::Config[:adapter])
end