Module: Falcon::Environment::Rackup
- Defined in:
- lib/falcon/environment/rackup.rb
Overview
Provides an environment for hosting loading a Rackup ‘config.ru` file.
Instance Method Summary collapse
Instance Method Details
#middleware ⇒ Object
21 22 23 |
# File 'lib/falcon/environment/rackup.rb', line 21 def middleware ::Falcon::Server.middleware(rack_app, verbose: verbose, cache: cache) end |
#rack_app ⇒ Object
17 18 19 |
# File 'lib/falcon/environment/rackup.rb', line 17 def rack_app ::Rack::Builder.parse_file(rackup_path) end |
#rackup_path ⇒ Object
13 14 15 |
# File 'lib/falcon/environment/rackup.rb', line 13 def rackup_path 'config.ru' end |