Class: Firehose::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/firehose/cli.rb

Instance Method Summary collapse

Instance Method Details

#startObject



8
9
10
11
12
13
14
15
16
# File 'lib/firehose/cli.rb', line 8

def start
  require 'thin'

  server = Thin::Server.new(options[:host], options[:port]) do
    run Firehose::Rack::App.new
  end

  server.start!
end