class Gitrob::CLI::Commands::Server

Public Class Methods

new(options) click to toggle source
# File lib/gitrob/cli/commands/server.rb, line 5
def initialize(options)
  @options = options
  info "Starting web application on port #{options[:port]}..."

  if debugging_enabled?
    Sequel::Model.db.logger = QueryLogger.new(STDOUT)
  end

  Gitrob::WebApp.run!(
    :port => options[:port].to_i,
    :bind => options[:bind_address]
  )
end