Class: Firehose::Server::App
- Inherits:
-
Object
- Object
- Firehose::Server::App
- Defined in:
- lib/firehose/server/app.rb
Overview
Configure servers that are booted with-out going through Rack. This is mostly used by the ‘firehose server` CLI command or for testing. Production configurations are likely to boot with custom rack configurations.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ App
constructor
A new instance of App.
- #start ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ App
Returns a new instance of App.
7 8 9 10 11 12 13 |
# File 'lib/firehose/server/app.rb', line 7 def initialize(opts={}) @port = opts[:port] || Firehose::URI.port @host = opts[:host] || Firehose::URI.host @server = opts[:server] || :rainbows Firehose.logger.info "Starting #{Firehose::VERSION} '#{Firehose::CODENAME}', in #{ENV['RACK_ENV']}" end |
Instance Method Details
#start ⇒ Object
15 16 17 |
# File 'lib/firehose/server/app.rb', line 15 def start self.send("start_#{@server}") end |