lib/firehose/cli.rb in firehose-0.0.7 vs lib/firehose/cli.rb in firehose-0.0.8
- old
+ new
@@ -1,12 +1,12 @@
require 'thor'
module Firehose
class CLI < Thor
- desc "start", "starts the firehose server"
+ 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 start
+ def server
require 'thin'
server = Thin::Server.new(options[:host], options[:port]) do
run Firehose::Rack::App.new
end
\ No newline at end of file