lib/firehose/cli.rb in firehose-0.0.8 vs lib/firehose/cli.rb in firehose-0.0.9

- old
+ new

@@ -1,18 +1,16 @@ require 'thor' +require 'thin' module Firehose class CLI < Thor desc "server", "starts the firehose server" method_option :port, :type => :numeric, :default => 7474, :required => true, :aliases => '-p' method_option :host, :type => :string, :default => '0.0.0.0', :required => true, :aliases => '-h' def server - require 'thin' - server = Thin::Server.new(options[:host], options[:port]) do run Firehose::Rack::App.new end - server.start! end end end \ No newline at end of file